0 Replies Latest reply on Nov 13, 2014 9:52 AM by beag

    Messaging connector ignores port-offset

    beag

      Hi

       

      We've implemented a connection factory used by ejb clients to connect to jms.

      The configuration in standalone.xml looks like:

       

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

              <factory-class>example.NettyConnectorFactory</factory-class>

          </connector>

       

      (example.NettyConnectorFactory extends org.hornetq.core.remoting.impl.netty.NettyConnectorFactory)

       

       

      This works fine as long as no port offset is configured. When e.g. port-offset of 100 is configured, the factory still uses port 5445 instead of 5545.

       

      Using a connector of type <netty-connector> works fine with port-offset:

       

          <netty-connector name="netty" socket-binding="messaging" />

       

        

      A workaround is to explicitly setting the port number:

       

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

              <factory-class>example.NettyConnectorFactory</factory-class>

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

          </connector>

       

      but then we have to change the configuration whenever the port offset changes.

       

       

      Is something missing/wrong in the configuration?

       

      Thanks in advance