1 Reply Latest reply on Apr 20, 2010 11:13 AM by brett_brettl

    Port ranges for responses

    brett_brettl

      I am working on a project where I need multiple ActiveMQ brokers running on the same machine. Each of these brokers need to handle messages on different port ranges. I know how to set the port numbers in the configuration file for the broker, but is there some way to configure what port numbers ActiveMQ will use when data is sent to a subscriber? In our work so far we have gotten a client to make requests of a broker on a specific port (like 61616), but ActiveMQ picks any available port to send responses.

       

      The reason for this is that we are going to have routers treat messages differently depending on what ports they are using.

       

      As an example if a client makes a subscription with a broker that is running on port 5000 then all traffic between that broker and the client should only happen on port numbers 5000 - 5999, since the routers will treat messages in that port range differently from others.