Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide 10g (10.1.3.1.0) Part Number B28221-02 |
|
|
View PDF |
You can configure a default data source for an EJB 2.1 application using deployment XML (see "Using Deployment XML").
For more information, see the following:
"Data Sources" in the Oracle Containers for J2EE Services Guide
To configure a default data source for an EJB 2.1 application, do the following:
Set the name of the default data source in the default-data-source
attribute of the orion-application
element in your orion-application.xml
file.
Set the name of the default data source in the data-source
attribute of the entity-deployment
element in your orion-ejb-jar.xml
file.
Define the default data source in the <
OC4J_HOME
>/j2ee/home/config/data-sources.xml
file.