|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.core.transaction.TransactionPolicy
org.openejb.core.stateful.StatefulBeanManagedTxPolicy
public class StatefulBeanManagedTxPolicy
Field Summary |
---|
Fields inherited from class org.openejb.core.transaction.TransactionPolicy |
---|
BeanManaged, container, logger, Mandatory, Never, NotSupported, policyType, Required, RequiresNew, Supports, txLogger |
Constructor Summary | |
---|---|
StatefulBeanManagedTxPolicy()
|
|
StatefulBeanManagedTxPolicy(TransactionContainer container)
|
Method Summary | |
---|---|
void |
afterInvoke(javax.ejb.EnterpriseBean instance,
TransactionContext context)
In the case of a stateful session bean, it is possible that the business method that started a transaction completes without committing or rolling back the transaction. |
void |
beforeInvoke(javax.ejb.EnterpriseBean instance,
TransactionContext context)
When a client invokes a business method via the enterprise bean's home or component interface, the Container suspends any transaction that may be associated with the client request. |
void |
handleApplicationException(java.lang.Throwable appException,
TransactionContext context)
Container's action |
void |
handleSystemException(java.lang.Throwable sysException,
javax.ejb.EnterpriseBean instance,
TransactionContext context)
A system exception is any exception that is not an Application Exception. |
java.lang.String |
policyToString()
|
protected void |
throwExceptionToServer(java.lang.Throwable sysException)
Throw RemoteException to remote client; throw EJBException to local client. |
protected void |
throwTxExceptionToServer(java.lang.Throwable sysException)
|
Methods inherited from class org.openejb.core.transaction.TransactionPolicy |
---|
beginTransaction, commitTransaction, discardBeanInstance, getContainer, getTxMngr, handleCallbackException, logSystemException, markTxRollbackOnly, resumeTransaction, rollbackTransaction, suspendTransaction, throwAppExceptionToServer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatefulBeanManagedTxPolicy(TransactionContainer container)
public StatefulBeanManagedTxPolicy()
Method Detail |
---|
public java.lang.String policyToString()
policyToString
in class TransactionPolicy
public void beforeInvoke(javax.ejb.EnterpriseBean instance, TransactionContext context) throws SystemException, ApplicationException
beforeInvoke
in class TransactionPolicy
instance
- context
-
SystemException
ApplicationException
public void afterInvoke(javax.ejb.EnterpriseBean instance, TransactionContext context) throws ApplicationException, SystemException
afterInvoke
in class TransactionPolicy
instance
- context
-
ApplicationException
SystemException
public void handleApplicationException(java.lang.Throwable appException, TransactionContext context) throws ApplicationException
Re-throw AppException
Client's viewClient receives AppException.
handleApplicationException
in class TransactionPolicy
ApplicationException
public void handleSystemException(java.lang.Throwable sysException, javax.ejb.EnterpriseBean instance, TransactionContext context) throws ApplicationException, SystemException
Receives RemoteException or EJBException.
handleSystemException
in class TransactionPolicy
ApplicationException
SystemException
protected void throwExceptionToServer(java.lang.Throwable sysException) throws ApplicationException
TransactionPolicy
throwExceptionToServer
in class TransactionPolicy
ApplicationException
protected void throwTxExceptionToServer(java.lang.Throwable sysException) throws ApplicationException
throwTxExceptionToServer
in class TransactionPolicy
ApplicationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |