Business Components

oracle.jbo.server.ejb.sb
Class BeanManagedServiceBean

java.lang.Object
  |
  +--oracle.jbo.server.ejb.SessionBeanImpl
        |
        +--oracle.jbo.server.ejb.sb.ServiceBean
              |
              +--oracle.jbo.server.ejb.sb.BeanManagedServiceBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class BeanManagedServiceBean
extends ServiceBean

BaseClass for deploying an appmodule service methods as stateful bean session bean with bean managed transaction. This class adds convenience method for subclasses to demarcate a transaction.

See Also:
Serialized Form

Fields inherited from class oracle.jbo.server.ejb.SessionBeanImpl
mApplicationModule
 
Constructor Summary
BeanManagedServiceBean()
           
 
Method Summary
TypeMethod
 void beginTransaction()
          Starts the transaction for this bean.
 void commitTransaction()
          Posts the changes in bc4j cache and then commits the transaction associated with the bean.
protected  TransactionHandlerFactory createTransactionHandlerFactory()
           
 void rollbackTransaction()
          Rollbacks the changes in bc4j cache and then rollbacks the transaction associated with the bean.
 
Methods inherited from class oracle.jbo.server.ejb.sb.ServiceBean
connectToDataSource, createApplicationModule, createApplicationModule, createApplicationModule, disconnectFromDataSource, postApplicationModuleCreate, useDataSource
 
Methods inherited from class oracle.jbo.server.ejb.SessionBeanImpl
ejbActivate, ejbPassivate, ejbRemove, getApplicationModule, getSessionContext, removeApplicationModule, setSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanManagedServiceBean

public BeanManagedServiceBean()
Method Detail

beginTransaction

public void beginTransaction()
                      throws javax.transaction.NotSupportedException,
                             javax.transaction.SystemException
Starts the transaction for this bean.

commitTransaction

public void commitTransaction()
                       throws javax.transaction.RollbackException,
                              javax.transaction.HeuristicMixedException,
                              javax.transaction.HeuristicRollbackException,
                              javax.transaction.SystemException,
                              java.lang.SecurityException,
                              java.lang.IllegalStateException,
                              JboException
Posts the changes in bc4j cache and then commits the transaction associated with the bean.

rollbackTransaction

public void rollbackTransaction()
                         throws javax.transaction.SystemException,
                                java.lang.SecurityException,
                                java.lang.IllegalStateException,
                                JboException
Rollbacks the changes in bc4j cache and then rollbacks the transaction associated with the bean.

createTransactionHandlerFactory

protected TransactionHandlerFactory createTransactionHandlerFactory()
Overrides:
createTransactionHandlerFactory in class ServiceBean

Business Components