1 Reply Latest reply on Feb 19, 2003 7:23 AM by Juha Lindfors

    Lookup datasource from client application

    Manish Shah Newbie

      Hi,

      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,
      Mash