[jboss-user] [Installation, Configuration & Deployment] - Remote and Local JMS Client Access

mr_alabama do-not-reply at jboss.com
Fri Dec 4 09:57:56 EST 2009


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.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269032#4269032

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269032



More information about the jboss-user mailing list