2 Replies Latest reply on Jun 23, 2003 5:56 AM by viz

    Newbie: JNDI problem

    viz Newbie

      Hi All,

      I have a very simple bean deployed. I have tested it and it works from a simple client. To do a successful Context lookup(...) I needed to place the following code in my client code:

      System.setProperty( "java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory" );
      System.setProperty( "java.naming.provider.url", "localhost:1099" );

      However, in a JSP (Tomcat 4.1.24 integrated into JBoss 3.2.1) this does not work, and I can't seem to get anything to work.

      What code do I need to place into a JSP to be able to find the JNDI name to which my bean is bound?

      All thoughts gratfully received.