users@glassfish.java.net

Re: How to use JTA in Container-Managed Transaction

From: <glassfish_at_javadesktop.org>
Date: Mon, 30 Jun 2008 05:39:14 PDT

Hi,

>>I want to kown the transaction type used by the Container-Managed
>>transaction, is it JTA?

Yes.

Applications with CMT are not allowed to use UserTransaction, since the transaction is managed by the container. However, such apps can use EJBContext.setRollbackOnly, getRollbackOnly, and SessionSynchronization interface to augment container-managed transaction.

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=283328