Java Message Service
The Java Message Service API is a Java 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.