[jboss-user] [JNDI/Naming/Network] - Re: UnknownHostException after successful connection to port

kahzoo do-not-reply at jboss.com
Wed Apr 16 09:27:40 EDT 2008

anonymous wrote : Is there any way to bind to all interfaces in 4.2 and persuade it to return an IP address instead of a hostname in the Naming object? 

The easiest way to do this is to use system property 'java.rmi.server.hostname'.

For example, on windows:

SET JAVA_OPTS=-Djava.rmi.server.hostname=xx.xx.xx.xx
  | run.bat -b

Please note that this will change the rmi server codebase throughout  your jboss server.

If you don't like that, and want to have the change to take effect in JBoss naming service only, then do the following:

1) open your server's 'conf/jboss-service.xml' file.
2) locate the 'jboss:service=Naming' mbean.
3) set the following 2 attributes.

<attribute name="RmiBindAddress">xx.xx.xx.xx</attribute>
  | <attribute name="ClientSocketFactory">org.jboss.net.sockets.DefaultClientSocketFactory</attribute>

4) restart your jboss server with -b option

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

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

More information about the jboss-user mailing list