Thanks for the super quick reply. I've done the following configuration to activemq_broker1.xml file. I've added two activemq components. And then I added a camel route. But it doesn't seem to work for me. Am I missing something here?
<bean id="broker1" class="org.apache.camel.component.jms.JmsComponent"> <property name="connectionFactory"> <bean class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="tcp://localhost:62001?broker.persistent=false"/> </bean> </property> </bean> <bean id="broker2" class="org.apache.camel.component.jms.JmsComponent"> <property name="connectionFactory"> <bean class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="tcp://localhost:63001?broker.persistent=false"/> </bean> </property> </bean> <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring"> <route> <from uri="broker1:q1"/> <to uri="broker2:q2"/> </route> </camelContext> James.Strachan wrote: > > On 02/11/2007, Viswanath Durbha <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I am using activemq 5.0. I have a question regarding forwarding messages >> from two pre-configured queues on different broker instances. >> >> Let's say I'm running two brokers broker1 and broker2. broker1 will have >> a >> queue q1 and broker2 will have a queue q2. How do I configure these >> brokers >> so that any message put in broker1-->q1 will be forwarded to >> broker2-->q2? > > If they are the same queue name you use a network of brokers. > > If you want to use different queues then using a Camel route is the > simplest... > http://activemq.apache.org/camel/ > > <route> > <from uri="activemq:q1"/> > <to uri="remoteBroker:q2"/> > </route> > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source SOA > http://open.iona.com > > -- View this message in context: http://www.nabble.com/broker1--%3Eq1-to-broker2--%3Eq2-tf4736085s2354.html#a13544096 Sent from the ActiveMQ - User mailing list archive at Nabble.com.