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
49
votes
5 answers

Relationship between JMS connections, sessions, and producers/consumers

I want to send a batch of 20k JMS messages to a same queue. I'm splitting the task up using 10 threads, so each will be processing 2k messages. I don't need transactions. I was wondering if having one connection, one session, and 10 producers is the…
Russell
  • 3,975
  • 7
  • 37
  • 47
49
votes
4 answers

How does RabbitMQ compare to Mule

How does RabbitMQ compare to Mule, I am going to build an application using message oriented architecture and AMQP (RabbitMQ) provides everything i want, but i am perplexed with so many related technology choice and similar concepts like ESB. I am…
Mani
  • 603
  • 1
  • 5
  • 6
42
votes
3 answers

How to get password from HTTP basic authentication

I'm using HTTP BASIC Authentication with Java. My Servlet sends a JMS message but I need to supply the user and password to authenticate myself while creating the connection: javax.jms.ConnectionFactory.createConnection(String username, String…
Jin Kim
  • 16,562
  • 18
  • 60
  • 86
39
votes
2 answers

What is the difference between Java RMI and JMS?

When designing an distributed application in Java there seem to be a few technologies that address the same kind of problem. I have briefly read about Java Remote Method Invocation and Java Message Service, but it is hard to really see the…
Jonas
  • 121,568
  • 97
  • 310
  • 388
38
votes
1 answer

What is the responsibility of a JMS broker in the JMS Eco system?

I was reading this question and the corresponding answer and got confused by the term JMS broker in the first line of the answer : MS (ActiveMQ is a JMS broker implementation) I want to know what exactly is a JMS broker and what are its…
Geek
  • 26,489
  • 43
  • 149
  • 227
37
votes
5 answers

How does JMS Receive work internally?

I've been researching various communication technologies/architectures/patterns/implementations (read: buzzwords) including Web Services (WCF, Axis2), ESBs, SOA, and wanted to know more about JMS with regards to messaging. Conceptually, JMS sounds…
Travis
  • 2,654
  • 4
  • 26
  • 46
37
votes
2 answers

Which is better: PooledConnectionFactory or CachingConnectionFactory?

We use Spring (3.2.4) with ActiveMQ (5.8.0) in Tomcat (7.0.41) and it is not clear what the best usage. We want to use JmsTemplate to produce and MessageListenerContainer to receive messages. Should we use caching in receiver side? (related…
Krayo
  • 2,492
  • 4
  • 27
  • 45
36
votes
5 answers

Which embedded messaging system -> ActiveMQ or HornetQ

I would appreciate some general pointers and opinions regarding which of the two messaging systems is easier to manage has less gotchas or magic stuff one needs to know and avoid has less overal dependencies is simple to work with.
mP.
  • 18,002
  • 10
  • 71
  • 105
34
votes
8 answers

What is Java Message Service (JMS) for?

I am currently evaluating JMS and I don't get what I could use it for. Currently, I believe this would be a Usecase: I want to create a SalesInvoice PDF and print it when an SalesOrder leaves the Warehouse, so during the Delivery transaction I…
Daniel
  • 27,718
  • 20
  • 89
  • 133
34
votes
3 answers

Which protocol does JMS use to send and receive messages?

I want to know if JMS API uses any protocol to transfer messages or if uses its own. If the former, which protocol? I have read many articles over the net but I couldn't find an answer for this.
Shabeeralimsn
  • 797
  • 4
  • 11
  • 32
34
votes
7 answers

Middleware & SOA by Example

I am an inexperienced Java developer trying to wrap my head around some fundamental middleware/SOA concepts and technologies, specifically: Service-Oriented Architecture (SOA) Message-Oriented Middleware (MOM) Message Queue Apache…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
32
votes
3 answers

java.net maven repo - JMS artifact missing

I just created a new Maven project using the default archetype and added the following dependency to my POM file. javax.jms jms 1.1
Phanindra
  • 363
  • 1
  • 4
  • 9
32
votes
12 answers

No adapter for endpoint; Is your endpoint annotated with @Endpoint, or does it implement a supported interface like MessageHandler or PayloadEndpoint?

I am struggling with an Spring-WS with JMS example. I set the Spring-WS and JMS wiring as per the Spring recommendations. But I kept getting following error. I dont know how to bypass this issue, any help will be highly…
user1988865
  • 321
  • 1
  • 3
  • 3
31
votes
5 answers

Execution of JMS message listener failed, and no ErrorHandler has been set

When I use Spring to listen to JMS messages, I receievd the above error. I am wondering how to add an Errorhandler into the JMS listener?
user705414
  • 20,472
  • 39
  • 112
  • 155
31
votes
6 answers

How to use Java JMS with MQseries

I am trying to develop a JMS standalone application to read and write to a Queue on MQSeries. My boss asked me to use pure java JMS (not ibm.mq lib) to do that. Here is the information that need to make the jms connection: …
David
  • 3,538
  • 9
  • 39
  • 50