public class BeanManagedServiceBean extends ServiceBean
mApplicationModule| Constructor and Description |
|---|
BeanManagedServiceBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTransaction()
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() |
protected boolean |
isTransactionManagedByBean() |
void |
rollbackTransaction()
Rollbacks the changes in bc4j cache, rollbacks
the transaction associated with the bean and
then release the jdbc connection.
|
createApplicationModule, createApplicationModule, isJboBeanconnectToDataSource, createApplicationModule, createApplicationModule, createApplicationModuleInternal, disconnectFromDataSource, doMessage, ejbActivate, ejbPassivate, ejbRemove, getApplicationModule, getApplicationModuleDefName, getConfigurationName, getSessionContext, getTransactionTimeOut, postApplicationModuleCreate, removeApplicationModule, setApplicationModuleDefName, setClientEnv, setConfigurationName, setCurrentSessionContext, setSessionContext, useDataSourcepublic void beginTransaction()
throws javax.transaction.NotSupportedException,
javax.transaction.SystemException
javax.transaction.NotSupportedExceptionjavax.transaction.SystemExceptionSessionBeanImpl.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()protected TransactionHandlerFactory createTransactionHandlerFactory()
createTransactionHandlerFactory in class ServiceBeanprotected final boolean isTransactionManagedByBean()
isTransactionManagedByBean in class SessionBeanImpl