org.hibernate.transaction
Class JTATransaction
java.lang.Objectorg.hibernate.transaction.JTATransaction
- Transaction
public class JTATransaction
extends java.lang.Object
Transaction implementation based on transaction management through
a JTA
UserTransaction. Similar to
CMTTransaction, except
here we are actually managing the transactions through the Hibernate
transaction mechanism.
Instances check to see if there is an existing JTA transaction. If none
exists, a new transaction is started; if one exists, all work is done in the
existing context. The following properties are used to locate the underlying
UserTransaction:
- hibernate.jndi.url : JNDI initial context URL
- hibernate.jndi.class : JNDI provider class
- jta.UserTransaction : JNDI namespace
getUserTransaction
protected UserTransaction getUserTransaction()
Getter for property 'userTransaction'.
- Value for property 'userTransaction'.