2 Replies Latest reply on Apr 28, 2003 2:17 PM by ucftcys

    separate Tomcat from JBoss

    ucftcys

      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
          ucftcys

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

          • 2. Re: separate Tomcat from JBoss
            ucftcys

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