public abstract class StatefulSessionBeanImpl extends SessionBeanImpl
mApplicationModule| Constructor and Description |
|---|
StatefulSessionBeanImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterBegin()
Implementation of the SessionSynchronization interface.
|
void |
afterCompletion(boolean committed)
Implementation of the SessionSynchronization interface.
|
void |
beforeCompletion()
Implementation of the SessionSynchronization interface.
|
void |
beginTransaction()
If the bean is managing the transaction, starts the bean transaction using the javax.transaction.UserTransaction interface and acquires the jdbc connection from the datasource.
|
void |
commitTransaction()
Posts the changes in bc4j cache, commits the transaction associated with the bean and then releases the jdbc connection.
|
protected TransactionHandlerFactory |
createTransactionHandlerFactory() |
void |
resume() |
void |
rollbackTransaction()
Rollbacks the changes in bc4j cache, rollbacks the transaction associated with the bean and then release the jdbc connection.
|
void |
suspend() |
connectToDataSource, createApplicationModule, createApplicationModule, createApplicationModuleInternal, disconnectFromDataSource, doMessage, ejbActivate, ejbPassivate, ejbRemove, getApplicationModule, getApplicationModuleDefName, getConfigurationName, getSessionContext, getTransactionTimeOut, isJboBean, isTransactionManagedByBean, postApplicationModuleCreate, removeApplicationModule, setApplicationModuleDefName, setClientEnv, setConfigurationName, setCurrentSessionContext, setSessionContext, useDataSource
public void afterBegin()
throws javax.ejb.EJBException
connectToDataSource for acquiring the jdbc connection.javax.ejb.EJBException
public void beforeCompletion()
throws javax.ejb.EJBException
postChanges. If a JboException is thrown by postChanges the transaction is marked for rollback and the exception is wrapped in java.rmi.RemoteException. The RemoteException is then thrown back to the container.javax.ejb.EJBExceptionTransaction.postChanges()
public void afterCompletion(boolean committed)
throws javax.ejb.EJBException
disconnectFromDataSource for releasing the jdbc connection.javax.ejb.EJBExceptionprotected TransactionHandlerFactory createTransactionHandlerFactory()
createTransactionHandlerFactory in class SessionBeanImplpublic void suspend()
public void resume()
public void beginTransaction()
throws javax.transaction.NotSupportedException,
javax.transaction.SystemException,
JboException
javax.transaction.NotSupportedExceptionjavax.transaction.SystemExceptionJboExceptionSessionBeanImpl.connectToDataSource()
public void commitTransaction()
throws javax.transaction.RollbackException,
javax.transaction.HeuristicMixedException,
javax.transaction.HeuristicRollbackException,
javax.transaction.SystemException,
java.lang.SecurityException,
java.lang.IllegalStateException,
JboException
javax.transaction.RollbackExceptionjavax.transaction.HeuristicMixedExceptionjavax.transaction.HeuristicRollbackExceptionjavax.transaction.SystemExceptionjava.lang.SecurityExceptionjava.lang.IllegalStateExceptionJboExceptionSessionBeanImpl.disconnectFromDataSource()
public void rollbackTransaction()
throws javax.transaction.SystemException,
java.lang.SecurityException,
java.lang.IllegalStateException,
JboException
javax.transaction.SystemExceptionjava.lang.SecurityExceptionjava.lang.IllegalStateExceptionJboExceptionSessionBeanImpl.disconnectFromDataSource()