activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jessezbj <>
Subject How to connect to multiple brokers?
Date Sun, 14 Aug 2011 20:18:50 GMT

I want to connect the client application to multiple brokers, then  I can
balance the message sending to different brokers.

Now I use the method of creating multiple connection factories in the
client, each with different connection uri.

that is.

for(uri in uri1... uriN) {
new ActiveMQConnectionFactory(uri);

but I find a lot of overhead in message sending.

Is there any better way to create multiple connections to different brokers
in one client.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message