| java.lang.Object org.apache.openejb.core.transaction.TransactionPolicy org.apache.openejb.core.transaction.TxRequiresNew
TxRequiresNew | public class TxRequiresNew extends TransactionPolicy (Code) | | 17.6.2.4 RequiresNew
The Container must invoke an enterprise Bean method whose transaction
attribute is set to RequiresNew with a new transaction context.
If the client invokes the enterprise BeanŐs method while the client is not
associated with a transaction context, the container automatically starts a
new transaction before delegating a method call to the enterprise Bean
business method. The Container automatically enlists all the resource
managers accessed by the business method with the transaction. If the
business method invokes other enterprise beans, the Container passes the
transaction context with the invocation. The Container attempts to commit
the transaction when the business method has completed. The container
performs the commit protocol before the method result is sent to the client.
If a client calls with a transaction context, the container suspends the
association of the transaction context with the current thread before
starting the new transaction and invoking the business method. The container
resumes the suspended transaction association after the business method and
the new transaction have been completed.
|
Methods inherited from org.apache.openejb.core.transaction.TransactionPolicy | abstract public void afterInvoke(Object bean, TransactionContext context) throws ApplicationException, SystemException(Code)(Java Doc) abstract public void beforeInvoke(Object bean, TransactionContext context) throws SystemException, ApplicationException(Code)(Java Doc) protected void beginTransaction(TransactionContext context) throws javax.transaction.SystemException(Code)(Java Doc) protected void commitTransaction(TransactionContext context, Transaction tx) throws SystemException(Code)(Java Doc) protected void discardBeanInstance(Object instance, ThreadContext callContext)(Code)(Java Doc) public TransactionContainer getContainer()(Code)(Java Doc) public Type getPolicyType()(Code)(Java Doc) abstract public void handleApplicationException(Throwable appException, boolean rollback, TransactionContext context) throws ApplicationException, SystemException(Code)(Java Doc) protected void handleCallbackException()(Code)(Java Doc) abstract public void handleSystemException(Throwable sysException, Object instance, TransactionContext context) throws ApplicationException, SystemException(Code)(Java Doc) protected void logSystemException(Throwable sysException, TransactionContext context)(Code)(Java Doc) protected void markTxRollbackOnly(Transaction tx) throws SystemException(Code)(Java Doc) public String policyToString()(Code)(Java Doc) protected void resumeTransaction(TransactionContext context, Transaction tx) throws SystemException(Code)(Java Doc) protected void rollbackTransaction(TransactionContext context, Transaction tx) throws SystemException(Code)(Java Doc) protected Transaction suspendTransaction(TransactionContext context) throws SystemException(Code)(Java Doc) protected void throwAppExceptionToServer(Throwable appException) throws ApplicationException(Code)(Java Doc) protected void throwExceptionToServer(Throwable sysException) throws ApplicationException(Code)(Java Doc) protected void throwTxExceptionToServer(Throwable sysException) throws ApplicationException(Code)(Java Doc)
|
|
|