1 Reply Latest reply on Feb 11, 2004 7:03 AM by anajavi

    HOWTO: Bind 1ip in Jboss3.2.3 to a multihomed host

    websel

      Hi!,
      I've been digging around to find out the proper way to bind Jboss to one ip on a multi homed host under Linux.

      This is the way to do it:

      ./run.sh -b 192.168.1.1 -Djava.rmi.server.hostname=192.168.1.1

      running lsof -i now shows a properly bind to only the 192.168.1.1 ip.

      Leaving the -D part away will crach jboss as it tries to resolve rmi calls to the main host interface and if you haven't bind jboss to that interface you see the following errors:
      23:48:03,221 ERROR [STDERR] java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is:
      java.net.ConnectException: Connection refused
      The xxx ip is the main host ip number and not the ip number you just binded jboss to. I have no clue why the RMI is resolved to the wrong p number, but it is solved with the -D option :-)
      Could be a bug or a n00b install from me :-)

      Hope this helps the other travelers :-)

      Wessel de Roode