Hi,

Please find an example below

Cheers,

Ashwin...

-------------------------------------

<beans xmlns="http://www.springframework.org/schema/beans";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="
   http://www.springframework.org/schema/beans 
   http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
   http://camel.apache.org/schema/spring 
   http://camel.apache.org/schema/spring/camel-spring.xsd";>

   <camelContext xmlns="http://camel.apache.org/schema/spring";>
       <route>
           <from uri="activemq1:queue:foo"/>
           <to uri="activemq2:topic:bar"/>
       </route>
   </camelContext>

   <bean id="activemq1" 
      class="org.apache.activemq.camel.component.ActiveMQComponent">
      <property name="brokerURL" value="tcp://host1:61616"/>
   </bean>

   <bean id="activemq2" 
      class="org.apache.activemq.camel.component.ActiveMQComponent">
      <property name="brokerURL" value="tcp://host2:61616"/>
   </bean>

</beans>

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
CamelOne 2011: http://fusesource.com/camel2011 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/multiple-activemq-brokers-tp4381631p4381666.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to