3 Replies Latest reply on Feb 1, 2011 12:50 AM by Claus Ibsen

    Network of Brokers Clients Reconnect on Different Transport Ports

    Thomas Barnes Newbie

      Background

       

      I have a configuration of Fuse Message Brokers (version 5.4.2) with a network of brokers (2 brokers). Java clients are connecting to the brokers via a standard failover connection string with both brokers on the standard openwire tcp port (61616). After clients re-connect (due to broker maintenance - stopping and restarting) the clients connect to other network connectors ports (61617,60001,60002) than the one specified in the client connection string (61616). This may cause problems due to Network ACLs where clients may not be able to reach the brokers on these other network connector ports. Also, I was attempting to separate out the Broker to Broker communication from the Client to Broker communication on separate transport connectors (for maintenance/security/tuning/other reasons).

       

      Question

       

      Is there a way to limit the transport connectors that clients utilize on "re-connects" to brokers with the failover transport?

       

      Client connection URI:

       

      failover:(tcp://message01.dev.corp.platform.intuit.net:61616,tcp://message02.dev.corp.platform.intuit.net:61616)

       

      Broker Transport Connectors:

       

      <transportConnectors>

       

      <transportConnector name="tcp" uri="nio://0.0.0.0:61616" />

       

      <transportConnector name="ssl" uri="ssl://0.0.0.0:61617" />

       

       

      <transportConnector name="http" uri="http://0.0.0.0:80" />

       

       

      <transportConnector name="https" uri="https://0.0.0.0:443" />

       

       

      <transportConnector name="stomp" uri="stomp+nio://0.0.0.0:61612" />

       

       

      <transportConnector name="stompssl" uri="stomp+ssl://0.0.0.0:61613" />

       

       

      <transportConnector name="cluster_tcp" uri="nio://0.0.0.0:60000" />

       

       

      <transportConnector name="cluster_ssl" uri="ssl://0.0.0.0:60001" />

       

       

      </transportConnectors>

       

      Broker Network Connectors:

       

       

       

      <networkConnectors>

       

       

      <networkConnector name="TcpNetworkConnector" uri="static:failover:(tcp://message01.dev.corp.platform.intuit.net:60000)"

       

       

      networkTTL="5" dynamicOnly="true" decreaseNetworkConsumerPriority="true" userName="${activemq.username}" password="${activemq.password}" prefetchSize="1">

       

       

      </networkConnector>

       

       

      <networkConnector name="SslNetworkConnector" uri="static:failover:(ssl://message01.dev.corp.platform.intuit.net:60001)"

       

       

      networkTTL="5" dynamicOnly="true" decreaseNetworkConsumerPriority="true" userName="${activemq.username}" password="${activemq.password}" prefetchSize="1">

       

       

      </networkConnector>

       

      Thanks for your help.

       

      Regards,

      Thomas