Using JBoss 3.0.3, I have configured a datasource called "OEDS", which is referenced and used successfully by data access classes in my EJBs.
I would like to connect to and use the datasource from client applications (in this case a JUnit test case for my data access class). When the client application performs the JNDI lookup to get the datasource, I get this exception -
javax.naming.NameNotFoundException: OEDS not bound
The InitialContext object is properly configured. I am new to DataSources, but I assumed they are accessible from outside the container? If so, I've probably missed some obvious configuration to make them accessible to client applications, but I can't think what.
Thanks in advance,
datasources are not bound under the global name space, only under the in-VM java: namespace. I suggest your clients talk to some server side component that uses the datasource available to the appserver.