On Fri, Dec 14, 2012 at 12:17 PM, newbiee <m_ess...@hotmail.com> wrote: > Thank you Hadrian! > > The other part of my question is how to route messages to two different > queues managed by two different queue managers. PRODUCTION environment has > different queue manager than QA environment. How can I specify this in the > xml since XML has only this (for example): > > <bean id="jms" class="org.apache.camel.component.jms.JmsComponent"> > <property name="connectionFactory"> > <bean class="org.apache.activemq.ActiveMQConnectionFactory"> > <property name="brokerURL" value="tcp://xxx.xx.x.x:xxxx" /> > </bean> > </property> > </bean> >
Hi You can define 2 different jms components, one for PROD and another for QA. The id can be anything you like, does not have to be "jms" eg you can have <bean id="mqProd" class="org.apache.camel.component.jms.JmsComponent"> ... </bean> <bean id="mqQA" class="org.apache.camel.component.jms.JmsComponent"> ... </bean> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/routing-messages-to-two-environments-tp5724030p5724081.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen