In the simplest form you could use a Camel route similar to this:

<route id="amq-to-hornetmq-bridge">
  <from uri="activemq:queue:TestQueue" />
  <to uri="hornetmq:queue:TestQueue1" />
</route>

and also declare the two endpoints in your camel-context.xml:

<bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
  <property name="brokerURL" value="tcp://localhost:61616" />
  <property name="brokerURL"
value="vm://localhost?broker.persistent=false"/>
</bean>

<bean id="hornetmq" class="org.apache.camel.component.jms.JmsComponent">
  <property name="connectionFactory" ref="hornetMQConnectionFactory"/>
</bean>

<bean class="org....hornetmq.PooledConnectionFactory"
id="hornetMQConnectionFactory">
  <property name="connectionURL..." value="...."/>
</bean>

Hope you get the idea.


Torsten Mielke 
FuseSource
tmielke.blogspot.com


Reply via email to