TransactionFactory strategy interface,
simply wrapping a standard JTA jakarta.transaction.TransactionManager .
Does not support transaction names; simply ignores any specified name.
jakarta.transaction.TransactionManager#setTransactionTimeout(int) , jakarta.transaction.TransactionManager#begin() , jakarta.transaction.TransactionManager#getTransaction()
| Modifier and Type | Field and Description |
|---|---|
| private final TransactionManager |
| Access | Constructor and Description |
|---|---|
| public | SimpleTransactionFactory(TransactionManager
the JTA TransactionManager to wrap transactionManager)Create a new SimpleTransactionFactory for the given TransactionManager. |
| Modifier and Type | Method and Description |
|---|---|
| public Transaction | createTransaction(String
the transaction name (may be name, int null)the transaction timeout (may be -1 for the default timeout) timeout)Implements org. |
| public boolean | supportsResourceAdapterManagedTransactions()
Implements org. |
| transactionManager | back to summary |
|---|---|
| private final TransactionManager transactionManager | |
| SimpleTransactionFactory | back to summary |
|---|---|
| public SimpleTransactionFactory(TransactionManager transactionManager) Create a new SimpleTransactionFactory for the given TransactionManager.
| |
| createTransaction | back to summary |
|---|---|
| public Transaction createTransaction(String name, int timeout) throws NotSupportedException, SystemException Implements org. Doc from org. Create an active Transaction object based on the given name and timeout.
| |
| supportsResourceAdapterManagedTransactions | back to summary |
|---|---|
| public boolean supportsResourceAdapterManagedTransactions() Implements org. Doc from org. Determine whether the underlying transaction manager supports XA transactions managed by a resource adapter (i.e. without explicit XA resource enlistment). Typically
| |