-
1. Re: Oracle datasource configuration
jonlee Nov 18, 2003 9:32 PM (in response to b_boyle18)JBOSS_HOME/docs/examples/jca/oracle-ds.xml is copied into your run-time deployment directory. Usually this is the default instance unless you specifically override it. So it should be copied into JBOSS_HOME/server/default/deploy. You can rename it anything you like as long as it ends with -ds.xml, as this signals to the JBoss server that the configuration file is for a datasource.
You must modify the file to add the JDBC URL for your database. I'm not familiar with the personal edition - although someone mentioned that it uses a JDBC-ODBC bridge. Check with your documentation on the JDBC driver used and the JDBC URL required in order to connect to your database. Replace the defaults in the file with your database username and password. Rename the jndi-name to your requirements - say OracleDS.
The oracle-ds.xml is configured to use the standard Oracle JDBC driver (usually packaged in classes12.zip or similar). You put the JDBC jar in JBOSS_HOME/server/default/lib.
Modify JBOSS_HOME/server/default/conf/standardjbosscmp-jdbc.xml for the datasource entry - it should be java:/OracleDS if you used the above suggestion. The datasource-mapping should be changed to Oracle8. If you search the file, further on you will see that there is a mapping entry for Oracle8.
Hope that helps. -
2. Re: Oracle datasource configuration
b_boyle18 Nov 22, 2003 2:06 PM (in response to b_boyle18)Yeah this helps, thanks
-
3. Re: Oracle datasource configuration
hiersoy Feb 9, 2004 11:20 AM (in response to b_boyle18)"jonlee" wrote:
JBOSS_HOME/docs/examples/jca/oracle-ds.xml is copied into your run-time deployment directory. Usually this is the default instance unless you specifically override it. So it should be copied into JBOSS_HOME/server/default/deploy. You can rename it anything you like as long as it ends with -ds.xml, as this signals to the JBoss server that the configuration file is for a datasource.
Hi,
Thank you very much. I have rarely seen this fact mentioned : "You can rename it anything you like as long as it ends with -ds.xml". -
4. Re: Oracle datasource configuration
rzfrantz Feb 11, 2004 3:05 PM (in response to b_boyle18)The DataSource (OracleDS) in Jboss has a connection pool?