This content has been marked as final.
Show 1 reply
-
1. Re: Datasource not correctly bound to JNDI context
juha Feb 6, 2007 2:23 PM (in response to aschulz)You're going the wrong way about it -- the idea is that the beans use the java:comp/env/jdbc/bps lookup name that is mapped to the app server's environment (arbitrary datasource name).
You don't need to change your datasource configuration or jndi-name, what you want to do is configure jboss.xml for your beans that maps the java:comp/env/jdbc/bps lookup to the datasource JNDI name binding (these are defined in the standard EJB xml as resource reference entries and then mapped in jboss.xml to app server's datasource deployments).
It's not a bug, it's a case of misunderstanding/abusing the spec provided mechanisms. Introductory guides books on J2EE using JBoss as example deployment environment will give you more details.