Hi,
We are currently using JBoss 4.2.2 but we are trying to make our application work under
JBoss 5.0.
We are using a WAR file as well as an EAR file containing our EJB jar file.
We defined our datasource as a JNDI resource in a "-ds.xml" file in the deploy
directory; it seems to be correctly deployed both under 4.2.2 and 5.0.
That data source is accessed by our application through a reference that is defined in
web.xml:
| <resource-ref>
| <res-ref-name>app-specific/datasource</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| </resource-ref>
|
The mapping between the resource reference name and the JNDI name is in our jboss-web.xml
file:
| <resource-ref>
| <res-ref-name>app-specific/datasource</res-ref-name>
| <jndi-name>java:/app/datasource</jndi-name>
| </resource-ref>
|
This set-up used to work under JBoss 4.2.2 but doesn't work anymore under JBoss 5.0;
it complains that the datasource is not bound:
| Caused by: javax.naming.NameNotFoundException: app-specific not bound
|
I know JBoss 5.0 is still Beta; I was just wondering if anybody else ran into this problem
too...
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142945#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...