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
31
votes
4 answers

Monitoring UI for Apache kafka - kafka manager vs kafka monitor

I am new to kafka. We want to monitor and manage kafka topics. We tried different open source monitoring tools like kafka-monitor kafka-manager Both tools are good. But we are unable to make a decision which should be included in our deployment…
Mr.Pramod Anarase
  • 1,454
  • 2
  • 15
  • 19
31
votes
2 answers

JMS AUTO_ACKNOWLEDGE when is it acknowledged?

I have tried to google this, but have not been successful. If I am using AUTO_ACKNOWLEDGE, and I have a consumer client written in Java, when is the message acknowledged? I am using a MessageListener which contains an onMessage method. Is the…
Reid Mac
  • 2,411
  • 6
  • 37
  • 64
28
votes
8 answers

JMS and ESB - how they are related?

For me JMS and ESB seem to be very related things and I'm trying to understand how exactly they are related. I've seen a sentence that JMS can be used as a transport for ESB - then what else except the transport should be present in such an ESB? Is…
afrish
  • 3,167
  • 4
  • 30
  • 38
28
votes
3 answers

How do you publish a JMS topic with Spring JMS?

I have a component that sends messages to a queue to be handled by another system. It should also publish a topic about job statuses every once in a while. Can I just use the same JmsTemplate used to send to a queue AND to publish to a topic? I…
wsb3383
  • 3,841
  • 12
  • 44
  • 59
28
votes
2 answers

What is the purpose of a JMS session?

What is the purpose of a JMS session? Why isn't a connection alone sufficient to exchange JMS messages between senders and receivers?
Derek Mahar
  • 27,608
  • 43
  • 124
  • 174
28
votes
5 answers

Lightweight JMS broker

I'm looking for a small and yet efficient enough lightweight JMS broker solution with no or minimum of dependencies. My messaging code should be running in the environment with a lot of dependencies I have no control of. Thus it would make…
nixau
  • 1,095
  • 1
  • 14
  • 27
27
votes
5 answers

Mock or simulate Message Queue (JMS)

There is a message(text), which format and content i definitely know. For now,class in Java,that parses and reads this message from file,is implemented. In real world, this message will come from Message Queue. For now I should simulate, mock or…
sergionni
  • 13,290
  • 42
  • 132
  • 189
27
votes
3 answers

Is Apache Kafka another API for JMS?

Is not Apache Kafka another implementation of JMS? I am using JMS+AMQ in my application, and migrating to Apache Kafka. Do I have to change all JMS codes?
Sam
  • 6,770
  • 7
  • 50
  • 91
27
votes
5 answers

How to handle order of messages in JMS?

I am reviewing a client-server application written in Java. The server receives JMS messages and processes them but the messages can come in an unexpected order, and a cancel can arrive before an order message. How do you handle such a case? Do you…
user271858
  • 977
  • 2
  • 9
  • 18
26
votes
2 answers

How to clear a queue in Oracle AQ

I've been testing Oracle AQ for the first time. I have managed to create 2000 rows of test inserts into the queue I created. Now, I'd like to clear those out. As I was teaching myself, I set the expiry time to be a month. I can't wait that long. …
jeph perro
  • 6,242
  • 26
  • 90
  • 124
25
votes
4 answers

Advantages of HornetQ vs ActiveMQ vs Qpid

I was browsing for an open source messaging software and after some good bit of research I came across these three products. I've taken these out for a preliminary test drive, having had them handle messages for queues and topics, and from what I've…
Raymond Linear
  • 251
  • 1
  • 3
  • 3
25
votes
2 answers

JMS - Going from one to multiple consumers

I have a JMS client which is producing messages and sending over a JMS queue to its unique consumer. What I want is more than one consumer getting those messages. The first thing that comes to my mind is converting the queue to a topic, so current…
25
votes
5 answers

Concurrent Synchronous Request-Reply with JMS/ActiveMQ - Patterns/Libraries?

I have a web-app where when the user submits a request, we send a JMS message to a remote service and then wait for the reply. (There are also async requests, and we have various niceties set up for message replay, etc, so we'd prefer to stick with…
joshwa
  • 1,660
  • 3
  • 17
  • 26
24
votes
9 answers

JMS vs Webservices

What are the big advantages from JMS over Webservices or vice versa? (Are webservices bloated? Is JMS overall better for providing interfaces?)
Martin K.
  • 4,669
  • 7
  • 35
  • 49
24
votes
4 answers

jms producer performance with spring

i created a simple producer consumer simulation based on spring, jms and activemq, i'm trying to reach high performance from both sides, producers and consumers, Connection settings :
Matan
  • 581
  • 2
  • 4
  • 13