|
Oracle9i Business Components for Java API Reference Oracle9i JDeveloper (9.0.4) B10391-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 | +--oracle.jbo.server.ejb.sb.ServiceBean
BaseClass for Application Module Service Session Bean. Service beans aggregate an application module for exposing any business logic as a session bean.
Subclasses must provide a TransactionHandlerFactory implementation for associating the appmodule transaction with the bean transaction.
Field Summary |
Fields inherited from class oracle.jbo.server.ejb.SessionBeanImpl |
mApplicationModule |
Constructor Summary | |
ServiceBean()
|
Method Summary | |
protected void |
connectToDataSource()
Convenenince method for acquiring the jdbc connection from the dataSource name specified in useDataSource . |
protected void |
createApplicationModule(java.lang.String amDefName)
Convenience method for creating the aggregated application module instance. |
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 void |
createApplicationModule(java.lang.String amDefName,
java.lang.String configName)
Convenience method for creating the aggregated application module instance using a LOCAL mode configuration. |
protected abstract TransactionHandlerFactory |
createTransactionHandlerFactory()
|
protected void |
disconnectFromDataSource()
Releases the jdbc connection by acquired by #connectToDataSource(). |
protected void |
postApplicationModuleCreate()
Called after creating the appmodule. |
void |
useDataSource(java.lang.String dataSourceName)
Set the JNDI name of the dataSource used for acquiring the jdbc connection. |
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 |
public ServiceBean()
Method Detail |
protected abstract TransactionHandlerFactory createTransactionHandlerFactory()
protected void createApplicationModule(java.lang.String amDefName, java.lang.String configName) throws javax.ejb.CreateException
amDefName
- Fully qaulified appmodule definition nameconfigName
-
javax.ejb.CreateException
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 createApplicationModule(java.lang.String amDefName) throws javax.ejb.CreateException
amDefName
- Fully qaulified appmodule definition name
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 void connectToDataSource() throws JboException
useDataSource
.
JboException
useDataSource(String)
,
Transaction.connectToDataSource(Hashtable, String, boolean)
protected void disconnectFromDataSource() throws JboException
JboException
Transaction.disconnect()
|
Oracle9i Business Components for Java API Reference Oracle9i JDeveloper (9.0.4) B10391-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.