This content has been marked as final. Show 1 reply
I just fixed the "problem", actually I was assuming that the @web.resource-ref took care of the jboss-web DD to generate the resource-ref. But I need to use the @jboss.resource-ref to achieve that.
The declaration is as follow
@web.resource-ref name = "jdbc/TheDataSource" type = "javax.sql.DataSource" auth = "Container" jndi-name = "java:jdbc/datasource" @jboss.resource-ref jndi-name = "java:/jdbc/datasource" res-ref-name = "jdbc/TheDataSource"