-
1. Re: Naming/DS Issue: JBoss 3.2.1, Firebird 1.5, FirebirdSQL
jfrosch May 18, 2003 8:47 PM (in response to jfrosch)When at first you don't succeed ...
I solved the problems I was having. Here's how:
First, deploying the firbirdsql.rar file precludes deploying the JDBC database driver file, firbirdsql.jar, since the rar file includes that driver.
Second, in the jbosscmp-jdbc.xml file, I was declaring the <datasource>ContactDS</datasource> instead of <datasource>java:/ContactDS</datasource>. After doing so, and changing the resource-ref entries to be like:
<resource-ref>
<res-ref-name>ContactDS</res-ref-name>
<jndi-name>java:/ContactDS</jndi-name>
</resource-ref>
everything worked!
In my ejb-jar.xml, I was just referring to <res-ref-name>ContactDS</res-ref-name>, but didn't realize I had to name the <jndi-name> with a "java:/" prefix.
I'm sure that's probably documented somewhere in the JBoss docs I paid for, but I actually discovered it in the free O'Reilly JBoss Workbook beta PDF. (My thanks to Bill Burke for the tip.)