1 Reply Latest reply on Mar 4, 2003 7:55 PM by peter

    Get InitialContext OUTSIDE of JBoss container

    peter Newbie

      Hi,

      Using Jboss 3, with Jetty, I managed to define a MySQL data source, and can access it via a simple JSP using InitialContext.

      However, doing a JNDI lookup OUTSIDE the j2ee container in a standalone java application always results in a name not found exception.

      Yes - I did end up add , jbossall-client.jar, log4j.jar, and jnet.jar to the classpath. The lookup is ("MySqlDS") in both cases....Yes - using the JNDI view shows the name....

      Help! thanks,
      Peter