[jboss-user] [JNDI/Naming/Network] - Re: UnknownHostException after successful connection to port
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:
| run.bat -b 0.0.0.0
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="ClientSocketFactory">org.jboss.net.sockets.DefaultClientSocketFactory</attribute>
4) restart your jboss server with -b 0.0.0.0 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