public interface TransactionService
| Modifier and Type | Method and Description |
|---|---|
boolean |
delistResource(XAResource xares)
Delists XA resource from transaction manager.
|
boolean |
enlistResource(XAResource xares)
Enlists XA resource in transaction manager.
|
int |
getDefaultTimeout() |
TransactionManager |
getTransactionManager() |
UserTransaction |
getUserTransaction() |
void |
setTransactionTimeout(int seconds)
Sets timeout in seconds,
|
TransactionManager getTransactionManager()
UserTransaction getUserTransaction()
int getDefaultTimeout()
void setTransactionTimeout(int seconds)
throws SystemException
seconds - intSystemExceptionboolean enlistResource(XAResource xares) throws RollbackException, SystemException, IllegalStateException
xares - XAResourceRollbackException - Thrown to indicate that
the transaction has been marked for rollback only.IllegalStateException - Thrown if the transaction in the
target object is in the prepared state or the transaction is
inactive.SystemException - Thrown if the transaction manager
encounters an unexpected error condition.boolean delistResource(XAResource xares) throws RollbackException, SystemException, IllegalStateException
xares - XAResourceIllegalStateException - Thrown if the transaction in the
target object is inactive.SystemException - Thrown if the transaction manager
encounters an unexpected error condition.RollbackExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.