|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.transaction.TransactionManagerHelper
@Service public class TransactionManagerHelper
This class is wrapper for the actual transaction manager implementation. JNDI lookup name "java:appserver/TransactionManager" see the com/sun/enterprise/naming/java/javaURLContext.java
| Constructor Summary | |
|---|---|
TransactionManagerHelper()
|
|
| Method Summary | |
|---|---|
void |
begin()
|
void |
commit()
|
int |
getStatus()
|
Transaction |
getTransaction()
|
int |
getTransactionRemainingTimeout()
Return duration before current transaction would timeout. |
XATerminator |
getXATerminator()
|
void |
postInvokeTx(boolean suspend,
boolean checkServletInvocation)
PostInvoke Transaction configuration for Servlet Container. |
void |
preInvokeTx(boolean checkServletInvocation)
PreInvoke Transaction configuration for Servlet Container. |
void |
recreate(Xid xid,
long timeout)
|
void |
registerRecoveryResourceHandler(XAResource xaResource)
|
void |
release(Xid xid)
|
void |
resume(Transaction tobj)
|
void |
rollback()
|
void |
setRollbackOnly()
|
void |
setTransactionTimeout(int seconds)
|
Transaction |
suspend()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionManagerHelper()
| Method Detail |
|---|
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerNotSupportedException
SystemException
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
java.lang.SecurityException,
java.lang.IllegalStateException,
SystemException
commit in interface TransactionManagerRollbackException
HeuristicMixedException
HeuristicRollbackException
java.lang.SecurityException
java.lang.IllegalStateException
SystemException
public int getStatus()
throws SystemException
getStatus in interface TransactionManagerSystemException
public Transaction getTransaction()
throws SystemException
getTransaction in interface TransactionManagerSystemException
public void resume(Transaction tobj)
throws InvalidTransactionException,
java.lang.IllegalStateException,
SystemException
resume in interface TransactionManagerInvalidTransactionException
java.lang.IllegalStateException
SystemException
public void rollback()
throws java.lang.IllegalStateException,
java.lang.SecurityException,
SystemException
rollback in interface TransactionManagerjava.lang.IllegalStateException
java.lang.SecurityException
SystemException
public void setRollbackOnly()
throws java.lang.IllegalStateException,
SystemException
setRollbackOnly in interface TransactionManagerjava.lang.IllegalStateException
SystemException
public void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface TransactionManagerSystemException
public Transaction suspend()
throws SystemException
suspend in interface TransactionManagerSystemException
public void recreate(Xid xid,
long timeout)
recreate in interface TransactionImportpublic void release(Xid xid)
release in interface TransactionImportpublic XATerminator getXATerminator()
getXATerminator in interface TransactionImportpublic void preInvokeTx(boolean checkServletInvocation)
public void postInvokeTx(boolean suspend,
boolean checkServletInvocation)
suspend - indicate whether the delisting is due to suspension or
transaction completion(commmit/rollback)
public int getTransactionRemainingTimeout()
throws SystemException
getTransactionRemainingTimeout in interface TransactionImportjava.lang.IllegalStateException - Thrown if the current thread is
not associated with a transaction.
SystemException - Thrown if the transaction manager
encounters an unexpected error condition.public void registerRecoveryResourceHandler(XAResource xaResource)
registerRecoveryResourceHandler in interface TransactionImport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||