4 Replies Latest reply on Sep 14, 2006 3:50 AM by mkislina

    Listening on 2 LAN cards

    freddofrog

      Is there a way of having JBOSS 3.2.3 (or any other release) listen on two IP addresses for incoming requests?

      We have a testing machine with one network card and address for internal network and another network card on the DMZ. We want to be able to access JBOSS inside the internal network but also have it hosted on the DMZ for people on the web to test.

      Is this easy? Is it possible?

        • 1. Re: Listening on 2 LAN cards
          analogueboy

          by default it will bind to 0.0.0.0 so it is available on all interfaces in a multi-homed machine, have a look at the console output when you start the server for more info. You can bind it to a single interface easily too, but I've never tried to bind it to more than one interface where the host had more than 2 interfaces.

          • 2. Re: Listening on 2 LAN cards
            starksm64

            You have to configure the various services you want running on the different interfaces with multiple connectors. For tomcat this means adding two Connector configurations in the jbossweb-tomcat50.sar/server.xml.

            • 3. Re: Listening on 2 LAN cards
              freddofrog

              Thanks for the info Scott! I changed the connector settings in jbossweb-tomcat41.sar / META-INF / jboss-webservice.xml to include a second connector and it works!

              • 4. Re: Listening on 2 LAN cards
                mkislina

                Scott, is it valid only for web-access? Is it possible to use connectors for EJB application clients access from different networks?
                Help is very appriciated.