| java.lang.Object org.apache.openejb.core.transaction.TransactionPolicy org.apache.openejb.core.transaction.TxSupports
TxSupports | public class TxSupports extends TransactionPolicy (Code) | | 17.6.2.3 Supports
The Container invokes an enterprise Bean method whose transaction attribute
is set to Supports as follows.
¥ If the client calls with a transaction context, the Container performs
the same steps as described in the Required case.
¥ If the client calls without a transaction context, the Container performs
the same steps as described in the NotSupported case.
The Supports transaction attribute must be used with caution. This is
because of the different transactional semantics provided by the two
possible modes of execution. Only the enterprise beans that will
execute correctly in both modes should use the Supports transaction
attribute.
|
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)
|
|
|