This content has been marked as final.
Show 3 replies
-
1. Re: connecting oracle db
tylr69drdn Jun 28, 2003 11:31 AM (in response to dominik_l)Take a look at the appendix of the workbook for JBoss that accompanies the O'Reilly EJB book at:
http://www.oreilly.com/catalog/entjbeans3/workbooks/index.html
Although all the code examples from the book are set up to work with the hypersonic database, the appendix shows how to set up the examples from chapter 6 so they use an Oracle database. The code is also there. -
2. You must lookup java:/OracleDS
olegi Jun 28, 2003 3:40 PM (in response to dominik_l)You must lookup java:/OracleDS. Example:
InitialContext ic = new InitialContext("java:/OracleDS");
ods = (DataSource) ic.lookup();
ic.close();
Connection conn = ods.getConnection();
I think, this is a "feature" of JBoss. -
3. Re: connecting oracle db
dominik_l Jul 1, 2003 10:29 AM (in response to dominik_l)Thanks for your replies!