Hi You define 3 different <bean> with an unique id, one per different broker.
eg <bean id="activemq-foo" class="..."> <!-- here goes broker configuration --> </bean> <bean id="activemq-bar" class="..."> <!-- here goes broker configuration --> </bean> <bean id="activemq-baz" class="..."> <!-- here goes broker configuration --> </bean> And then refer to them using "activemq-foo:queue:someQueueName" and "activemq-bar:queue:someQueueName", and so forth. See details here http://camel.apache.org/activemq On Mon, Oct 17, 2011 at 2:08 PM, Gnanaguru S <[email protected]> wrote: > > Hi > > I have this scenario. > > I have three ActiveMQ brokers at different, I am using camels loadbalancing > capability to avail HA. Below is my code: > > <?xml version="1.0" encoding="UTF-8"?> > <blueprint > xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation=" > http://www.osgi.org/xmlns/blueprint/v1.0.0 > http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"> > <camelContext xmlns="http://camel.apache.org/schema/blueprint" > trace="true"> > > > > <route> > <from uri="file://inputdir/"/> > > <loadBalance> > <roundRobin/> > * <to uri="HOST1:activemq:queue:test"/> > <to uri="HOST2:activemq:queue:test"/> > <to uri="HOST3:activemq:queue:test"/>* > </loadBalance> > </route> > > > </camelContext> > </blueprint> > > As the lines marked in bold, I want to route to different brokers in > roundrobin fashion. But i dont know how to specify different broker address > in camel. > > please help me out. > > Such that i can achieve high availability through camel and AMQ. > > Hope my question was clear. > > > Regards > Guru > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Specifying-different-destinations-using-camel-tp4909674p4909674.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
