1 Reply Latest reply on Sep 23, 2015 6:43 PM by Eric Fulton

    Wildfly 8.2.1, interface IP not propagated to acceptor

    Eric Fulton Newbie

                              <acceptor name="netty"  socket-binding="messaging">

                                  <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>

                              </acceptor>

       

      ....

       

      <socket-binding name="messaging" port="5445" interface="public"/>

       

       

      ...

          <interfaces>

              <interface name="management"/>

              <interface name="public">

                  <inet-address value="10.11.5.165"/>

              </interface>

              <interface name="unsecure"/>

          </interfaces>

       

       

      Above is my configuration.  The address that is bound to is 127.0.0.1 and not 10.11.5.165.  The same is true with this configuration:

              <interface name="public">

                  <nic name="eth0" />

              </interface>

       

      The only way i've gotten the acceptor bound to the proper address is with:

       

                  <outbound-socket-binding name="messaging">

                      <remote-destination host="10.11.5.165" port="5445"/>

                  </outbound-socket-binding>

       

      And then of course that will not work since this is in domain.xml and all of the other nodes in the cluster end up trying to bind to the same IP.

       

      Any help would be much appreciated.

        • 1. Re: Wildfly 8.2.1, interface IP not propagated to acceptor
          Eric Fulton Newbie

          I mistyped.  The only way I've been able to get it to work is actually:

                                  <acceptor name="netty"  socket-binding="messaging">

                                      <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>

                                      <param key="port" value="5445"/>

                                      <param key="host" value="${jboss.bind.address}"/>

                                  </acceptor>

           

          and again, that won't work for domain.xml.