You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Mark W <el...@gmail.com> on 2011/06/08 03:55:38 UTC
bridge HornetQ and ActiveMQ
I am looking to bridge these two JMS systems. I have found some
example bridging config files but they do not speak specifically to
HornetQ. Has anyone done this before?
Thanks,
Mark
Re: bridge HornetQ and ActiveMQ
Posted by Mark W <el...@gmail.com>.
Thanks for the info and yes, I understand what you are saying.
Problem is that I cannot figure out how to build a HornetQ connection
factory. After spending some time with HornetQ, it makes me
appreciate ActiveMQ more.. ;)
On Thu, Jun 9, 2011 at 10:47 AM, Torsten Mielke <to...@fusesource.com> wrote:
> 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
>
>
>
Re: bridge HornetQ and ActiveMQ
Posted by Torsten Mielke <to...@fusesource.com>.
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
Re: bridge HornetQ and ActiveMQ
Posted by Mark W <el...@gmail.com>.
That looks like it would work. I'm not sure on the configuration and
have been working that for a while with no success.
On Wed, Jun 8, 2011 at 9:22 AM, Torsten Mielke <to...@fusesource.com> wrote:
> You should be able to use Camel to bridge both JMS systems. Camel can
> work with different JMS providers.
> See http://camel.apache.org/jms.html for more details.
>
> Torsten Mielke
> FuseSource.com
> tmielke.blogspot.com
>
>
Re: bridge HornetQ and ActiveMQ
Posted by Torsten Mielke <to...@fusesource.com>.
You should be able to use Camel to bridge both JMS systems. Camel can
work with different JMS providers.
See http://camel.apache.org/jms.html for more details.
Torsten Mielke
FuseSource.com
tmielke.blogspot.com