Hi Following the code snippet Claus has already provided there's also a concrete example on the Camel codebase you could take a look at:
https://svn.apache.org/repos/asf/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/activemq/TwoEmbeddedActiveMQBrokersTest.java Babak newbiee 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> -- View this message in context: http://camel.465427.n5.nabble.com/routing-messages-to-two-environments-tp5724030p5724125.html Sent from the Camel - Users mailing list archive at Nabble.com.