|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-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
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()
Null implementation of SessionBean interface. |
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 |
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 |
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
public void ejbRemove()
removeApplicationModule
to remove application module
ejbRemove
in interface javax.ejb.SessionBean
protected 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
.
JboException
useDataSource(String)
,
Transaction.connectToDataSource(Hashtable, String, boolean)
protected void disconnectFromDataSource() throws JboException
JboException
Transaction.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.CreateException
protected 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 ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.