activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Mielke <tors...@fusesource.com>
Subject Re: bridge HornetQ and ActiveMQ
Date Thu, 09 Jun 2011 14:47:12 GMT
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



Mime
View raw message