4 Replies Latest reply on Aug 3, 2009 5:05 PM by joealex1

    Fuse ESB 4.1.0.4 ActiveMQ does not bind to all IPs

    joealex1

      OS : Linux CentOS

      JVM : 1.6 Update 12

       

      I was upgrading from Fuse 4.0.0.4 to 4.1.0.2. Using all default settings.

      ActiveMQ is deployed via the activemq-broker.xml in deploy directory.

       

      In 4.1.0.2 ActiveMQ only binds to localhost:61616 and not to all IPs, tried 0.0.0.0 also. Have the examples-cxf-osgi webservice running at 8181. That binds to all IPs *.8181.

       

      Saw a related issue here https://issues.apache.org/activemq/browse/AMQ-2094

      Is this a known issue in FUSE 4.1?

       

      Works fine in FUSE ESB 4.0.0.4 on same box and external clients can connect fine.

        • 1. Re: Fuse ESB 4.1.0.4 ActiveMQ does not bind to all IPs
          stlewis

          I believe this is exactly what you're seeing, the thing is that localhost does not (and should not) mean bind to all interfaces.  The proper way to specify all interfaces is to specify 0.0.0.0 as the listen address for the broker.  How did you specify it in your configuration?  The proper way would be like:

           

           

          • 2. Re: Fuse ESB 4.1.0.4 ActiveMQ does not bind to all IPs
            joealex1

            I have it as uri="tcp://0.0.0.0:61616" Tried localhost and also the actual IP. Still it binds to only localhost. Default setup (localhost) binds to all IPs in 4.0.0.4. Seems an issue in 4.1 onwards at least in Linux.

            • 3. Re: Fuse ESB 4.1.0.4 ActiveMQ does not bind to all IPs
              stlewis

              Seems odd, have you restarted the ESB or done an osgi/update on the auto-generated activemq-broker.xml bundle?  If I check it here on my Linux machine I see it's listening on all interfaces as I'd expect:

               

              lsof -p 7145 | grep 61616 :

               

              java    7145 slewis  166u  IPv6             762105      0t0    TCP *:61616 (LISTEN)

              • 4. Re: Fuse ESB 4.1.0.4 ActiveMQ does not bind to all IPs
                joealex1

                It binds to all IPs now. Did a restart, commented  and removed discoveryUri="multicast://default" attribute from <transportConnector.

                 

                So all you have to do is change localhost to 0.0.0.0. Looks like in Fuse 4.0.0.4 localhost=all IPs and Fuse 4.1.0.2 localhost=127.0.0.1 and 0.0.0.0=all IPs. That is good.

                 

                Not sure what was the issue - will try to put the default setup back and try just changing the uri=0.0.0.0.

                 

                Thanks for the help