[rabbitmq-discuss] can activemq and rabbitmq be used together in the same application?

Simon MacMullen simon at rabbitmq.com
Thu Mar 15 10:54:40 GMT 2012


On 15/03/12 08:06, Ashutosh Mathur wrote:
> Hi,
>
> -> Is it possible to use both ActiveMQ broker and RabbitMQ broker in the
> same application/project?

Absolutely, but you'll need different client libraries (or use STOMP, 
which they both talk).

> I want to send some messages using
> ActiveMQ/JMS and some using RabbitMQ/AMQP(please don't ask why!!).
> I tried using both ..but my application keeps giving a JMS exception .Is
> it possible for ActiveMQ broker to interact/listen to a RabbitMQ broker
> and vice-versa(i guess using  a bridge of some sort)? if yes,then how do
> we build the bridge between the two?

There's no pre-existing bridge to my knowledge, although you could write 
one I suppose.

> ->how can we define JAVA beans for
> connection,template,connection-factory,message-senders,message-listener
> using XML,so that we need not define connection,connection-factory in
> every listener/sender we create.? is the following correct way of
> defining  a Rabbit Template:
>
> code-
> <bean id="rabbitTemplate"
> class="org.springframework.amqp.rabbit.core.RabbitTemplate"/>
> <property>name="connectionFactory" ref="rabbitConnectionFactory"</property>
> </bean>

Any Spring-AMQP experts want to comment on this?

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list