0

I need to send messages to RabbitMQ through AMQP 1.0 and receive them with @JmsListener in Spring Boot. I've discovered there are two specific plugins for RabbitMQ that add support for AMQP 1.0 and JMS.

The JMS plugin is meant to be used with RabbitMQ's JMS Client library but on the AMQP 1.0 github they say that SwiftMQ Java Client is the one that works properly.

What I don't understand is, what do I need to use to fulfill the above requirements? How do I set it up?

1 Answers1

0

You could just use the Qpid JMS client library. It implements JMS so it will integrate with Spring JMS and it speaks AMQP 1.0 over the wire so it will work with RabbitMQ + AMQP 1.0 plugin.

Justin Bertram
  • 29,372
  • 4
  • 21
  • 43
  • Sorry I didn't respond earlier. I'd already tried Qupid, basically doing everything like in the official RabbitMQ JMS Client tutorial but didn't succeed. There were no errors. The program just stopped responding and didn't want to exit until I killed the process. Changing Qupid to JMS Client (i.e. using AMQP 0-9-1) worked perfectly but I need it to work with AMQP 1.0. So, no success. – Bogdan Tischenko Jun 03 '21 at 06:32
  • Why would the RabbitMQ JMS client tutorial apply to the Qpid JMS client? Those are different clients. – Justin Bertram Jun 03 '21 at 15:51
  • The tutorial only includes setting up a ConnectionFactory bean. All I did was change the RMQConnectionFactory to JmsConnectionFactory. They are both JMS clients and are supposed to provide the same API. In that sense, not so different – Bogdan Tischenko Jun 03 '21 at 17:38
  • Fair enough. A quick web search indicates that it should work (e.g. [this question](https://stackoverflow.com/questions/54323253/unable-to-send-messages-with-qpid-jms-and-rabbitmq-creating-amqpfixedproducer)). Without additional details it's impossible to say why it is not working for you. – Justin Bertram Jun 03 '21 at 18:25
  • Thanks for the link! I'll try it out. I would gladly provide additional details and probably wouldn't even have created this question if I had them. No errors, no messages. But the question you linked seems to be very similar to my case – Bogdan Tischenko Jun 03 '21 at 20:50
  • Did you turn on any debug logging on either the client or the broker? – Justin Bertram Jun 03 '21 at 22:25