1 Reply Latest reply on Feb 21, 2003 6:23 AM by adrian.brock

    jndi.properties

    dmx007

      I have 2 JBoss servers running on the same machine. JMS client 1 needs to connect to JBoss 1 and JMS client 2 needs to connect to JBoss2.

      When i have just 1 JBoss server running, the jndi.properties file for my JMS client is as follows:
      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      java.naming.provider.url=machine_name

      Now that i have 2 JBoss servers, i think i need to specify the port number too. What is the port number by default? can someone help?

        • 1. Re: jndi.properties

          java.naming.provider.url=host:port

          e.g.
          java.naming.provider.url=localhost:1099

          The port is the naming service from jboss-service.xml
          1099 by default.

          Regards,
          Adrian