If I access UserTransaction does this mean that I use 2 phase commit or XA?

Posted by Pangea on Stack Overflow See other posts from Stack Overflow or by Pangea
Published on 2010-03-10T01:29:19Z Indexed on 2010/03/14 15:25 UTC
Read the original article Hit count: 413

Hi

UserTransaction ut=lookup....
ut.beginTransaction();
saveToFooDB();
statelessEjb.transactionSupportedMethod(); //saves something to the Foo DB
saveToFooDB();
ut.commit();

If i was doing the above then my understanding is that it is not an XA transaction as it doesn't span across multiple resources (like DB plus JMS). Is my understanding correct?

© Stack Overflow or respective owner

Related posts about j2ee

Related posts about jta