Define a data source in your %J2EE_HOME%/config/data-sources.xml
file to point to the schema you want to query. The FBS application uses a
data source configured for OC4J.
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="OracleDS"
location="jdbc/OracleCoreDS"
xa-location="jdbc/xa/OracleXADS"
ejb-location="jdbc/OracleDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="scott"
password="tiger"
url="jdbc:oracle:thin:@localhost:1521:oracle"
inactivity-timeout="30"
/>
Make sure the orion-ejb-jar.xml file points
to the data source you have defined. For example, the following element points
to the jdbc/OracleDS data source.
<entity-deployment name="Emp" data-source="jdbc/OracleDS" table="EMP">
If the required tables (e.g., EMP) already exist, edit
the orion-application.xml file to turn off the autocreate-tables
feature. For example:
<orion-application autocreate-tables="false" ... >