I need to know how to use a transaction when i'm going to do some inserts, 
updates or deletes y diferents databases, but the all databases are in 
postgres, so the function will be some like this:

UserTransaction ut = new UserTransaction();

try{

ut.begin();

// I get the diferents datasources and the conections
// execute the insert, delete, or update

ut.commit();
catch(Exception e)
{
  ut.rollback()
}

}

The code does not throw any exceptions but, the commit is not executed.
just do nothing

What Happend??????'

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925647#3925647

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925647


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to