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 192.168.1.10, and JBoss is in 192.168.1.20..
      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:

          java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
          java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
          # Do NOT uncomment this line as it causes in VM calls to # go over
          # RMI!
          java.naming.provider.url=localhost:1099

          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");