1 Reply Latest reply on Apr 28, 2003 2:19 PM by Gary

    Separate Tomcat from JBoss

    Gary Newbie

      suppose I want to separate Tomcat from JBoss...
      for example, the Tomcat is in, and JBoss is in
      How can I find EJB's JNDI name(JBoss) from Tomcat??
      What configuration do I need to make?
      What I need to do in servlet?

      Thanks a lot~~

        • 1. Re: Separate Tomcat from JBoss
          Gary Newbie

          I found the solution...
          1. copy the jndi.properties file to WEB-INF/classes/jndi.properties..(in Tomcat)
          and modify the file as follow:

          # Do NOT uncomment this line as it causes in VM calls to # go over
          # RMI!

          2.add the following lines to your servlet or JSP:

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