This content has been marked as final.
Show 2 replies
-
1. Re: DATASOURCE AND JNDI
salinaale Apr 7, 2005 4:05 AM (in response to salinaale)if this can help:
in every definition of ejb in ejb-jar.xml i've put
<resource-ref>
XXXXXX
<res-ref-name>jdbc/MYDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
and the only way i found to solve the problem is to create a jboss.xml like this...
...
...
<ejb-name>XXXX</ejb-name>
<jndi-name>YYYYY</jndi-name>
<resource-ref>
<res-ref-name>jdbc/MYDB</res-ref-name>
<jndi-name>java:/MYDB</jndi-name>
</resource-ref>
...
...
Is there a simpliest solution? i don't want to write a jboss.xml file for every component of my project.....
is not possible to define in a global way the association jdbc/MYDB --> java:/MYDB ??
Thanks,
Ale -
2. Re: DATASOURCE AND JNDI
adrian.brock Apr 12, 2005 10:03 PM (in response to salinaale)Moderated: Use the EJB forum, although the answer is NO.