This content has been marked as final.
Show 2 replies
-
1. Re: JCA JNDI problem !
jimm Apr 14, 2005 4:50 PM (in response to mtigua)Put this in your web.xml (as per spec will put it in comp/env):
<resource-ref>
My important datasource
<res-ref-name>jdbc/JdelfosDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
And this in your jboss-web.xml (which maps from global to local):
<resource-ref>
<res-ref-name>jdbc/JdelfosDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/JdelfosDataSource</jndi-name>
</resource-ref>
see [jboss install]/docs/dtd/jboss-web_4_0.dtd for xml syntax specifics -
2. Re: JCA JNDI problem !
jimm Apr 14, 2005 4:54 PM (in response to mtigua)One more time, with proper formatting
Put this in your web.xml (as per spec will put it in comp/env):<resource-ref> <description>My important datasource</description> <res-ref-name>jdbc/JdelfosDataSource</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
And this in your jboss-web.xml (which maps from global to local):
<resource-ref> <res-ref-name>jdbc/JdelfosDataSource</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/JdelfosDataSource</jndi-name> </resource-ref>
see [jboss install]/docs/dtd/jboss-web_4_0.dtd for xml syntax specifics