| 
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.9.0) E52932-01  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  
oracle.jbo.server.ejb.SessionBeanImpl
public abstract class SessionBeanImpl
BaseClass for Session Bean implementation. Aggregates an application module for exposing any business logic as a session bean.
| Field Summary | |
|---|---|
protected  ApplicationModuleImpl | 
mApplicationModule | 
| Constructor Summary | |
|---|---|
SessionBeanImpl() | 
|
| Method Summary | |
|---|---|
protected  void | 
connectToDataSource()Convenenince method for acquiring the jdbc connection from the dataSource name specified in useDataSource. | 
protected  void | 
createApplicationModule(java.util.Hashtable env) | 
protected  void | 
createApplicationModule(java.lang.String amDefName, java.util.Hashtable initialContextEnv)Convenience method for creating the aggregated application module instance using the jndi environment properties.  | 
protected  TransactionHandlerFactory | 
createTransactionHandlerFactory() | 
protected  void | 
disconnectFromDataSource()Releases the jdbc connection by acquired by #connectToDataSource().  | 
 ServiceMessage | 
doMessage(ServiceMessage msg) | 
 void | 
ejbActivate() | 
 void | 
ejbPassivate()Null implementation of SessionBean interface.  | 
 void | 
ejbRemove()Implementation of SessionBean.ejbRemove().  | 
protected  ApplicationModule | 
getApplicationModule()Returns the appmodule instance created by createApplicationModule() method  | 
protected  java.lang.String | 
getApplicationModuleDefName() | 
protected  java.lang.String | 
getConfigurationName() | 
protected  javax.ejb.SessionContext | 
getSessionContext()Returns the SessionContext set by setSessionContext()  | 
protected  int | 
getTransactionTimeOut() | 
protected  boolean | 
isJboBean() | 
protected  boolean | 
isTransactionManagedByBean() | 
protected  void | 
postApplicationModuleCreate()Called after creating the appmodule.  | 
protected  void | 
removeApplicationModule()Convenience method for removing the aggregated application module instance.  | 
protected  void | 
setApplicationModuleDefName(java.lang.String amDefName) | 
protected  void | 
setClientEnv(java.util.Hashtable mClientEnv) | 
protected  void | 
setConfigurationName(java.lang.String configName) | 
protected  void | 
setCurrentSessionContext() | 
 void | 
setSessionContext(javax.ejb.SessionContext ctx)Implementation of SessionBean interface.  | 
 void | 
useDataSource(java.lang.String dataSourceName)Set the JNDI name of the dataSource used for acquiring the jdbc connection.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected transient ApplicationModuleImpl mApplicationModule
| Constructor Detail | 
|---|
public SessionBeanImpl()
| Method Detail | 
|---|
protected void setClientEnv(java.util.Hashtable mClientEnv)
public void ejbActivate()
ejbActivate in interface javax.ejb.SessionBeanpublic void ejbPassivate()
ejbPassivate in interface javax.ejb.SessionBeanpublic void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext in interface javax.ejb.SessionBeanpublic void ejbRemove()
removeApplicationModule to remove application moduleejbRemove in interface javax.ejb.SessionBeanprotected javax.ejb.SessionContext getSessionContext()
protected ApplicationModule getApplicationModule()
protected void removeApplicationModule()
protected boolean isTransactionManagedByBean()
protected int getTransactionTimeOut()
protected boolean isJboBean()
protected void createApplicationModule(java.util.Hashtable env)
                                throws javax.ejb.CreateException
javax.ejb.CreateException
public ServiceMessage doMessage(ServiceMessage msg)
                         throws ServiceException
ServiceException
protected void connectToDataSource()
                            throws JboException
useDataSource.JboExceptionuseDataSource(String), Transaction.connectToDataSource(Hashtable, String, boolean)
protected void disconnectFromDataSource()
                                 throws JboException
JboExceptionTransaction.disconnect()
protected void createApplicationModule(java.lang.String amDefName,
                                       java.util.Hashtable initialContextEnv)
                                throws javax.ejb.CreateException
amDefName - Fully qaulified appmodule definition nameinitialContextEnv - The initial context environment used to create the aggregated appmodule in local mode.javax.ejb.CreateExceptionprotected void postApplicationModuleCreate()
public void useDataSource(java.lang.String dataSourceName)
dataSourceName - The JNDI name of the dataSource. For OC4J this should be ejb-location of datasource defined in data-sources.xml.protected TransactionHandlerFactory createTransactionHandlerFactory()
protected final java.lang.String getApplicationModuleDefName()
protected java.lang.String getConfigurationName()
protected final void setApplicationModuleDefName(java.lang.String amDefName)
protected void setConfigurationName(java.lang.String configName)
protected void setCurrentSessionContext()
  | 
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.9.0) E52932-01  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||