Questions tagged [jms]

The Java Message Service (JMS) API is a Java Message Oriented Middleware (MOM) API for sending messages between two or more clients. JMS is a part of the Java Platform, Enterprise Edition, and is defined by a specification developed under the Java Community Process.

Definition:

The Java Message Service (JMS) API is a Java message-oriented middleware (MOM) API for sending messages between two or more clients. JMS is a part of the Java Platform, Enterprise Edition, and is defined by a specification developed under the Java Community Process as JSR 914.1 It is a messaging standard that allows application components based on the Java Platform, Enterprise Edition (Java EE) to create, send, receive, and read messages. It allows the communication between different components of a distributed application to be loosely coupled, reliable, and asynchronous.2

References:

  1. Wikipedia's JMS entry
  2. Oracle's JMS overview

Resources:

JMS Vendors

7531 questions
643
votes
17 answers

ActiveMQ or RabbitMQ or ZeroMQ or

We'd be interested to hear any experiences with the pros and cons of ActiveMQ vs RabbitMQ vs ZeroMQ. Information about any other interesting message queues is also welcome.
Abie
  • 10,855
  • 6
  • 32
  • 39
289
votes
16 answers
231
votes
10 answers

JMS Topic vs Queues

I was wondering what is the difference between a JMS Queue and JMS Topic. ActiveMQ page says Topics In JMS a Topic implements publish and subscribe semantics. When you publish a message it goes to all the subscribers who are interested - so zero…
Poliquin
  • 2,937
  • 4
  • 28
  • 32
188
votes
11 answers

Real world use of JMS/message queues?

I was just reading abit about JMS and Apache ActiveMQ. And was wondering what real world use have people here used JMS or similar message queue technologies for ?
nos
  • 223,662
  • 58
  • 417
  • 506
169
votes
11 answers

When to use Spring Integration vs. Camel?

As a seasoned Spring user I was assuming that Spring Integration would make the most sense in a recent project requiring some (JMS) messaging capabilities (more details). After some days working with Spring Integration it still feels like a lot of…
ngeek
  • 7,733
  • 11
  • 36
  • 42
153
votes
8 answers

JMS and AMQP - RabbitMQ

I am trying to understand what JMS and how it is connected to AMQP terminology. I know JMS is an API and AMQP is a protocol. Here are my assumptions (and questions as well) RabbitMQ uses AMQP protocol (rather implements AMQP protocol) Java clients…
Kevin Rave
  • 13,876
  • 35
  • 109
  • 173
115
votes
3 answers

When to use actors instead of messaging solutions such as WebSphere MQ or Tibco Rendezvous?

I've already read the question and answers to What design decisions would favour Scala's Actors instead of JMS?. Usually, we use messaging solutions which have existed for years already: either a JMS implementation such as WebSphere MQ or Apache…
Kai Wähner
  • 1,201
  • 2
  • 10
  • 7
83
votes
1 answer

What design decisions would favour Scala's Actors instead of JMS?

What are the differences using Scala Actors instead of JMS? For example from a performance and scalability perspective, what does the Scala Actor model add compared to JMS? In which cases does it make more sense to use Actors rather than JMS, i.e.…
Kristian
  • 6,443
  • 6
  • 27
  • 29
71
votes
4 answers

ActiveMQ vs Apollo vs Kafka

I don't have any previous experience with *MQs and I'm looking to build knowledge on JMS and message queues in general. That way, I wonder whether I should start with ActiveMQ or just "ignore" it altogether and start by teaching myself Apollo. Is…
Martin
  • 1,317
  • 3
  • 13
  • 18
71
votes
11 answers

what is JMS good for?

I'm looking for (simple) examples of problems for which JMS is a good solution, and also reasons why JMS is a good solution in these cases. In the past I've simply used the database as a means of passing messages from A to B when the message cannot…
Dónal
  • 185,044
  • 174
  • 569
  • 824
56
votes
9 answers

What is the right Maven dependency for javax.jms.* classes?

I need to import javax.jms.* classes. What is the right dependency to include into a Maven project? I'm trying javax.jms:jms:1.1, but no luck (it's pom, not jar). ps. The only workaround I've found so far is: javax:javaee-api:6.0 (from Maven…
yegor256
  • 102,010
  • 123
  • 446
  • 597
56
votes
1 answer

Why are SpyJMSExceptions still thrown after recycling the client JBoss connection to remote queues?

My application below communicates as a client on a JBoss 7.2.0 system to a receiver JNDI/JMS on a JBoss 4.2.1 system. It creates a Send Queue and a Receive Queue. We have been running just fine for 2 months straight with this configuration; no…
JoshDM
  • 4,939
  • 7
  • 43
  • 72
55
votes
2 answers

ActiveMQ: How to handle broker failovers while using temporary queues

On my JMS applications we use temporary queues on Producers to be able to receive replies back from Consumer applications. I am facing exactly same issue on my end as mentioned in this thread:…
anubhava
  • 761,203
  • 64
  • 569
  • 643
52
votes
2 answers

When to use JMS and when to use REST?

Besides the asynchronous/synchronous nature of a particular problem and taking into account that MOMs (in this case having chosen JMS) offer additional features for free like load balancing and others, what else can one consider when choosing JMS…
jmdev
  • 729
  • 1
  • 6
  • 13
50
votes
10 answers

Which JMS implementation do you use?

We are using ActiveMQ 5.2 as our implementation of choice and we picked it a while ago. It performs well enough for our use right now. Since its been a while, I was wondering what other Java Message Service implementations are in use and why? …
Jay R.
  • 31,911
  • 17
  • 52
  • 61
1
2 3
99 100