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

Oleg Zhurakousky ozhurakousky at vmware.com
Thu Mar 15 10:58:38 GMT 2012


You can also use Spring Integration which provides AMQP and JMS adapters.

http://static.springsource.org/spring-integration/reference/htmlsingle/#amqp
http://static.springsource.org/spring-integration/reference/htmlsingle/#jms

Cheers
Oleg

----- Original Message -----
From: "Simon MacMullen" <simon at rabbitmq.com>
To: "Ashutosh Mathur" <amathur.q at gmail.com>
Cc: rabbitmq-discuss at lists.rabbitmq.com
Sent: Thursday, March 15, 2012 6:54:40 AM
Subject: Re: [rabbitmq-discuss] can activemq and rabbitmq be used together in	the same application?

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
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list