activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SuoNayi <>
Subject Reply:failover transport connect
Date Tue, 22 Jan 2013 08:39:32 GMT
Hi, I guess:
1. The broker sends the rebalance control messages to your client and your
client do rebalance and reconnect to the other broker; 
2. The second broker has some consumers while none on the first broker
so messages sent to the first broker are forwarded to the second broker by demand.
3. Failover transport may misbehave in your case where enabling rebalanceClusterClients
option of TransportConnector and backup option of FailoverTransport while disabling 
randomize option of FailoverTransport .

At 2013-01-22 12:24:27,"Nate Faerber" <> wrote:
>I have two ActiveMQ server configured as network of brokers and my clients
>with this connect string:
>It seems that every time we create a JMS message using Spring Framework,
>the ActiveMQ connection, our clients try the primary then fail to the
>secondary.  The large (large) majority of messages go through the second
>ActiveMQ server.  This seems like an inefficiency or at least does not
>behave like I would expect it to.  Am I misunderstanding the configuration
>2013-01-21 20:10:27,604 INFO
> [org.apache.activemq.transport.failover.FailoverTransport][ActiveMQ
>Task-1] [] Successfully connected to
>2013-01-21 20:10:27,610 INFO
> [org.apache.activemq.transport.failover.FailoverTransport][ActiveMQ
>Task-1] [] Successfully reconnected to
>My servers have this config:
>        <transportConnectors>
>            <transportConnector
>                name="${}"
>                uri="${broker.transport.client.uri}"
>                updateClusterClients="true"
>                updateClusterClientsOnRemove="true"
>                rebalanceClusterClients="true" />
>            <transportConnector
>                name="${}"
>                uri="${}" />
>        </transportConnectors>
>Thoughts appreciated.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message