9 Replies Latest reply on Jun 3, 2004 4:14 AM by mharnvi

    Raising JBoss ports on one particular ip-addess

    kbk

      Hi,

      Env:
      JBoss 3.0.8
      Linux Redhat Enterprise 3.0

      All our nodes in the production environment have mutiple ip-addresses. When JBoss starts it raises all the ports (1099, 8080, 8083...) on all available ip-addresses. This is not what we would like. Is it possible to configure JBoss to just raise the ports on one ip-address, and if yes how do we do it?

      /Kris

        • 1. Re: Raising JBoss ports on one particular ip-addess

          This feature was added in jboss-3.2.3
          you can start jboss with run.sh -s <ip-address>

          Before that version you had to go through all the services and configure a

          <attribute name="BindAddress">ip-address</attribute>
          

          on each service (sometimes it is not called BindAddress).

          Regards,
          Adrian

          • 2. Re: Raising JBoss ports on one particular ip-addess
            kbk

            Ok Adrian,
            I'll try. You wrote:
            (sometimes it is not called BindAddress).
            do you know what it might be called if not BindAddress?

            /kris

            • 3. Re: Raising JBoss ports on one particular ip-addess

              grep the 3.2.3 configuration for jboss.bind.address and you will find them all

              Regards,
              Adrian

              • 4. Re: Raising JBoss ports on one particular ip-addess
                luigifonti

                I have the same problem, so i tried to see where jboss.bind.address is defined, but I only found places where it is used, but none where it is defined.

                • 5. Re: Raising JBoss ports on one particular ip-addess
                  luigifonti

                  Moreover, the -s <ip-address> option is only usable under Linux (run.sh), but under Windows run.bat doesn't like it.

                  • 6. Re: Raising JBoss ports on one particular ip-addess

                    It is the same as

                    run.bat -Djboss.bind.address=<ip-address>
                    


                    Regards,
                    Adrian

                    • 7. Re: Raising JBoss ports on one particular ip-addess
                      npdavis

                       

                      "adrian@jboss.org" wrote:
                      It is the same as
                      run.bat -Djboss.bind.address=<ip-address>
                      


                      Regards,
                      Adrian

                      [user@acct010 bin]$ ./run.sh --help
                      ================================================================================
                      
                       JBoss Bootstrap Environment
                      
                       JBOSS_HOME: /usr/java/jboss-3.2.3
                      
                       JAVA: /usr/java/j2sdk1.4.0_01/bin/java
                      
                       JAVA_OPTS: -server -Dprogram.name=run.sh
                      
                       CLASSPATH: /usr/java/jboss-3.2.3/bin/run.jar:/usr/java/j2sdk1.4.0_01/lib/tools.jar
                      
                      ================================================================================
                      
                      usage: run.sh [options]
                      
                      options:
                       -h, --help Show this help message
                       -V, --version Show version information
                       -- Stop processing options
                       -D<name>[=<value>] Set a system property
                       -p, --patchdir=<dir> Set the patch directory; Must be absolute
                       -n, --netboot=<url> Boot from net with the given url as base
                       -c, --configuration=<name> Set the server configuration name
                       -j, --jaxp=<type> Set the JAXP impl type (ie. crimson)
                       -L, --library=<filename> Add an extra library to the loaders classpath
                       -C, --classpath=<url> Add an extra url to the loaders classpath
                       -P, --properties=<url> Load system properties from the given url
                       -b, --host=<host or ip> Bind address for all JBoss services
                      


                      • 8. Re: Raising JBoss ports on one particular ip-addess
                        npdavis

                         

                        C:\java\jboss-3.2.3\bin>run.bat --help

                        produces similar output

                        • 9. Re: Raising JBoss ports on one particular ip-addess
                          mharnvi

                          I'm on Linux and even without jboss.bind.address set JBoss only binds one IP address. I want it to listen on all interfaces. Here is netstat -at:

                          tcp 0 0 127.0.0.1:1098 0.0.0.0:* LISTEN 21222/java
                          tcp 0 0 127.0.0.1:1099 0.0.0.0:* LISTEN 21222/java

                          Apache on the other hand looks like this:

                          tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 27147/httpd

                          I tried setting jboss.bind.address to "" in run.sh but nothing changed.

                          Anyone?

                          /Markus