Java Message ServiceThe Java Message Service API is a Java Message Oriented Middleware API for sending messages between two or more clients. The API supports two models:
- publish/subscribe model
- point-to-point or queuing model
In the point-to-point or queuing model,a producer posts messages to a particular queue and a consumer reads messages from the queue. Here the producer knows the destination of the message and posts the message directly to the consumer's queue.