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 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="RmiBindAddress">xx.xx.xx.xx</attribute>
  | <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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to