org.apache.openejb.core.transaction
Class TxNotSupported
java.lang.Object
org.apache.openejb.core.transaction.TransactionPolicy
org.apache.openejb.core.transaction.TxNotSupported
public class TxNotSupported
- extends TransactionPolicy
17.6.2.1 NotSupported
The Container invokes an enterprise Bean method whose transaction attribute
is set to NotSupported with an unspecified transaction context.
If a client calls with a transaction context, the container suspends the
association of the transaction context with the current thread before
invoking the enterprise bean's business method. The container resumes the
suspended association when the business method has completed. The suspended
transaction context of the client is not passed to the resource managers or
other enterprise Bean objects that are invoked from the business method.
If the business method invokes other enterprise beans, the Container passes
no transaction context with the invocation.
Refer to Subsection 17.6.5 for more details of how the Container can
implement this case.
Methods inherited from class org.apache.openejb.core.transaction.TransactionPolicy |
beginTransaction, commitTransaction, discardBeanInstance, getContainer, getPolicyType, handleCallbackException, logSystemException, markTxRollbackOnly, policyToString, resumeTransaction, rollbackTransaction, suspendTransaction, throwAppExceptionToServer, throwExceptionToServer, throwTxExceptionToServer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TxNotSupported
public TxNotSupported(TransactionContainer container)
beforeInvoke
public void beforeInvoke(Object instance,
TransactionContext context)
throws SystemException,
ApplicationException
- Specified by:
beforeInvoke
in class TransactionPolicy
- Throws:
SystemException
ApplicationException
afterInvoke
public void afterInvoke(Object instance,
TransactionContext context)
throws ApplicationException,
SystemException
- Specified by:
afterInvoke
in class TransactionPolicy
- Throws:
ApplicationException
SystemException
handleApplicationException
public void handleApplicationException(Throwable appException,
boolean rollback,
TransactionContext context)
throws ApplicationException,
SystemException
- Specified by:
handleApplicationException
in class TransactionPolicy
- Throws:
ApplicationException
SystemException
handleSystemException
public void handleSystemException(Throwable sysException,
Object instance,
TransactionContext context)
throws ApplicationException,
SystemException
- Specified by:
handleSystemException
in class TransactionPolicy
- Throws:
ApplicationException
SystemException
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.