Hi there,
I'm using network connectors to connecter a source broker to an active/passive pair of target brokers with spring configuration like this:
.
.
.
<amq:networkConnectors>
<amq:networkConnector name="BFOXiCustConnector" dispatchAsync="false" uri="static:(${target.url})?failover=true">
<amq:excludedDestinations>
<amq:queue physicalName=">" />
</amq:excludedDestinations>
<amq:staticallyIncludedDestinations>
<amq:queue physicalName="BFOXiCust" />
</amq:staticallyIncludedDestinations>
</amq:networkConnector>
.
.
.
Note ${target.url} contains more than one host e.g.
tcp://mybroker1:61616,tcp://mybroker2:61616
I keep seeing the following in the log:
NetworkBridge: java.util.concurrent.ThreadPoolExecutor$Worker@58886ad0 ERROR org.apache.activemq.broker.TransportConnection.Service - Async error occurred: javax.jms.InvalidClientIDException: Broker: source-pqagmr01.pqa.ham.uk - Client: NC_target-pqagmr03.pqa.ham.uk_inboundsource-pqagmr01.pqa.ham.uk already connected from vm://source-pqagmr01.pqa.ham.uk#0
javax.jms.InvalidClientIDException: Broker: source-pqagmr01.pqa.ham.uk - Client: NC_target-pqagmr03.pqa.ham.uk_inboundsource-pqagmr01.pqa.ham.uk already connected from vm://source-pqagmr01.pqa.ham.uk#0
I Googled this and came up with a solution which says that the brokers must all have different names and that that will eradicate the problem but they already do have different names so I'm a bit stumped. Can anyone help?
Cheers,
James
Hi James,
a version of the Message Broker you are using would be handy
thanks,
Rob