-b is a specific parameter used by JBoss. JBoss populates several args
with that in the jboss-service.xml.
To set the IP address used by the RMI server (in any system), you have
to use the following Java arg:
-Djava.rmi.server.hostname=
If you use 0.0.0.0 it will be bound to all IP address:
-Djava.rmi.server.hostname=0.0.0.0
You can bind to a specific IP address or hostname:
-Djava.rmi.server.hostname=xxx.xxx.xxx.xxx
You have to set that in the karaf startup script.
You have the detail of the RMI properties here:
http://download.oracle.com/javase/1.4.2/docs/guide/rmi/javarmiproperties.html
Regards
JB
On 04/21/2011 06:36 PM, Certus Technology wrote:
Achim,
Thanks for the suggestion. I have tried a couple of things:
Setting -b 10.0.0.1 as a jvm argument prevents the jvm from starting.
Unrecognized option: -b
Passing -b 10.0.0.1 to the karaf main (org.apache.karaf.main.Main) has
no effect on which IP addresses the rmiRegistryPort binds to.
Can you clarify what you mean?
Regards
Rob
On 21/04/11 16:58, Achim Nierbeck wrote:
There is just one thing that comes to my mind, when staring the jvm
you can tell wich ip address to bind on through the -b param
e.g. -b0.0.0.0 does bind on all interfaces on the server. it might be
possible by configuring this through the system.properties or you
might
need to change the startup skript for that.
regards, Achim