This content has been marked as final.
Show 1 reply
-
1. Re: resource-ref not working in 3.2.0RC1 or 3.0.4
joey75205 Feb 24, 2003 6:34 PM (in response to joey75205)Okay, I figured out the problem. I found some code out on the web that sets up a resource ref for a datasource in jBoss. I had to add the following to my jboss.xml file:
<enterprise-beans>
<ejb-name>HelloEJB</ejb-name>
<jndi-name>HelloHome</jndi-name>
<resource-ref>
<res-ref-name>jdbc/OrderDS</res-ref-name>
<resource-name>jdbc/EstoreXADB</resource-name>
</resource-ref>
</enterprise-beans>
<resource-managers>
<resource-manager res-class="javax.sql.DataSource">
<res-name>jdbc/EstoreXADB</res-name>
<res-jndi-name>java:/jdbc/EstoreXADB</res-jndi-name>
</resource-manager>
</resource-managers>
So the resource-managers tag is the key.
Joey