Java Messaging Service (JMS) is part of J2EE, a Message Oriented Middleware (MOM) API for sending/receiving message. It supports two distinct message service. One of them is Point-to-Point and Other one is Publish and subscribe model. In point-to-point mode, a producer publish a message to a queue and consumer reads from the queue. Both producer and consumer can run independently. A successful process is acknowledged by consumer in case of synchronize message. A message is publish on a topic in publish/subscribe model. If a particular subscriber register for the topic, it will receive the message without knowing about the publisher. One topic can be registered by many subscribers. A subscriber must be active to receive a message. JMS is loosely coupled communications for message precessing where the sender doesn’t worry about whether the message consumed by the consumer. All it do is to send the message into the message queue in the server.
In Message Queue (MQ) server a message is nothing more than stream of bytes (XML document, serialized Java object, text string). Interpretation is totally concern of the application domain. It has no duty with the structure of the entire message.
Continue….
References:
1. http://en.wikipedia.org/wiki/Java_Message_Service
2. http://www.ibm.com/developerworks/java/library/j-jtp0205.html
3. http://today.java.net/pub/a/today/2005/06/03/loose.html
By: Md. Shahjalal
Posted by Md. Shahjalal 
