JMSTemplate or RabbitTemplate which is better to use

304 views
Skip to first unread message

Balu R

unread,
Sep 19, 2019, 7:09:10 AM9/19/19
to rabbitmq-users
Dear All,

I am trying to integrate my application with RabbitMQ Broker. Would like to know the better approach of integration, whether to go with Spring AMQP RabbitTemplate or to use the plain Spring JMSTemplate. Any guidance would be greatly appreciated.

Thanks,
Balu

Michael Klishin

unread,
Sep 19, 2019, 8:41:50 AM9/19/19
to rabbitmq-users
If you intend to use Spring, starting with Spring AMQP makes a lot more sense.

Balu R

unread,
Sep 19, 2019, 9:43:28 AM9/19/19
to rabbitm...@googlegroups.com
Thank you Michael. Infact the specific reason for this question was, since I have already a working Spring JMS adapter in my application thought of reusing the same to connect to rabbitmq. Until unless spring-amqp has some obvious advantages over spring jms when connecting to rabbitmq would prefer to stick with spring jms.

Regards,
Balu

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/caf8128a-543e-40f3-b756-302bb367a8e1%40googlegroups.com.

Michael Klishin

unread,
Sep 19, 2019, 8:09:47 PM9/19/19
to rabbitmq-users
Spring AMQP has a lot more features than JMS (specific to RabbitMQ), and RabbitMQ JMS client has certain limitations that Spring JMS cannot make go away.

Unless you want to only ever consider JMS, Spring AMQP or RabbitMQ Java client sound like more pragmatic options [1].




--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Balu R

unread,
Sep 20, 2019, 5:15:27 AM9/20/19
to rabbitmq-users
Thanks Michael. Yes, in this case Spring AMQP makes sense.


On Friday, 20 September 2019 05:39:47 UTC+5:30, Michael Klishin wrote:
Spring AMQP has a lot more features than JMS (specific to RabbitMQ), and RabbitMQ JMS client has certain limitations that Spring JMS cannot make go away.

Unless you want to only ever consider JMS, Spring AMQP or RabbitMQ Java client sound like more pragmatic options [1].


On Thu, Sep 19, 2019 at 4:43 PM Balu R <balu...@gmail.com> wrote:
Thank you Michael. Infact the specific reason for this question was, since I have already a working Spring JMS adapter in my application thought of reusing the same to connect to rabbitmq. Until unless spring-amqp has some obvious advantages over spring jms when connecting to rabbitmq would prefer to stick with spring jms.

Regards,
Balu

Sent from my iPhone

On 19 Sep 2019, at 18:11, Michael Klishin <mkli...@pivotal.io> wrote:

If you intend to use Spring, starting with Spring AMQP makes a lot more sense.

On Thursday, September 19, 2019 at 2:09:10 PM UTC+3, Balu R wrote:
Dear All,

I am trying to integrate my application with RabbitMQ Broker. Would like to know the better approach of integration, whether to go with Spring AMQP RabbitTemplate or to use the plain Spring JMSTemplate. Any guidance would be greatly appreciated.

Thanks,
Balu

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitm...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitm...@googlegroups.com.

Basri Kaya

unread,
Jun 25, 2020, 10:41:32 AM6/25/20
to rabbitmq-users
Dear Balu,

Did u find an example which using Spring Jms with RabbitMQ. Just like you, I have working Spring JMS adapter in my application so i need to use JmsTemplate.

Thanks so much

20 Eylül 2019 Cuma 12:15:27 UTC+3 tarihinde Balu R yazdı:
Reply all
Reply to author
Forward
0 new messages