5
votes

We use RabbitMQ and Spring-AMQP for our messaging system.

However there are many Java libraries that use JMS that I would rather not rewrite to AMQP.

I failed to Google a JMS client that will use AMQP.

Should I just rewrite the library to use AMQP directly?

2
Could you please provide a little feedback here in the comments on what solution worked for you in the end? Or alternatively if you went with something different, could you post an answer? In researching this question myself I couldn't come up with a better answer than @nos did without doing a bunch of testing. I'd really like to gain from your experiences here.Ben Burns
@Ben Burns I just used AMQP directly through Springs AMQP abstraction. In theory you could build a JMS layer on top of that but I never did. springsource.org/spring-amqpAdam Gent

2 Answers

3
votes

qpid , which also speaks amqp , has a JMS client library. Perhaps that also works with rabbitmq.

There's some (old) indications the OpenAMQ library works works with rabbitmq

2
votes

Depending on what you're actually building, you'll probably find that Spring Integration is useful:

http://www.springsource.org/spring-integration

It abstracts the concepts of end points, such that they are pluggable and there is built-in support for JMS & AMQP.

It's fairly trivial to build a simple AMQP <-> JMS adapter.