1 Reply Latest reply on Dec 4, 2009 11:17 AM by peterj

    Remote and Local JMS Client Access

      I have encountered a problem with our JBoss deployment (v 4.2.3) with JBossMQ. I can successfully configure the server to start and and accept connections from local or remote clients but NOT both.

      [1] The following startup script works fine for remote clients:

      $JBOSS_HOME/bin/run.sh -Djboss.bind.address=0.0.0.0 -Djava.rmi.server.hostname=10.0.0.100 -Djava.rmi.server.useLocalHostname=false

      Remote clients can connect with the following JNDI properties:

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jboss.naming.client:org.jnp.interfaces
      java.naming.provider.url=jnp://10.0.0.100:1099

      [2] Starting the service this way works fine for local clients:

      $JBOSS_HOME/bin/run.sh -Djboss.bind.address=0.0.0.0 -Djava.rmi.server.hostname=127.0.0.1 -Djava.rmi.server.useLocalHostname=false

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jboss.naming.client:org.jnp.interfaces
      java.naming.provider.url=jnp://127.0.0.1:1099

      I can't understand why option [1] doesn't work for local clients too.

      I'm betting the answer is blindingly obvious to someone.

      Thanks.

        • 1. Re: Remote and Local JMS Client Access
          peterj

          Why are you setting jboss.bind.address and java.rmi.server.hostname instead of passing "-b 0.0.0.0" which should set both?

          As long as you set java.rmi.server.hostname to something other than 0.0.0.0, RMI connections will be accepted only on the IP address specified (that is, if you say 127.0.0.1, then only localhost can connect, etc.)