Re: How to create connections to different brokers by using one ConnectionFactory?

2011-09-15 Thread Marcelo Jabali
I haven't used myself but maybe the Fanout Transport could help you here. Take a look on http://activemq.apache.org/fanout-transport-reference.html to see if that helps. Thanks, -Marcelo On Sep 14, 2011, at 8:09 PM, Jason Whaley wrote: With a single connection factory you can only use the

How to create connections to different brokers by using one ConnectionFactory?

2011-09-14 Thread jessezbj
How to create connections to different brokers by using one ConnectionFactory? Can the code be written as ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(); for each url in URLs { connectionFactory.setBrokerURL(url); Connection connection =

Re: How to create connections to different brokers by using one ConnectionFactory?

2011-09-14 Thread Jason Whaley
With a single connection factory you can only use the failover transport ( http://activemq.apache.org/failover-transport-reference.html ) to connect to multiple brokers, but only one broker URL will be used at a time. If you want to have two active connections (or connection pools) to two