What is JMS?

, , Leave a comment

What is JMS?
Java Message Service or JMS is an Application Programming Interface (API) which is part of the Java 2 Platform, Enterprise Edition (J2EE). Being an API, it follows certain specifications and rules to access or interact with other software programs that also implement API. Using Java Message Service (JMS) is an easy choice for writing business applications that send and receive data independently from the main program.

Java Message Service (JMS) came about as a collaborative effort between Sun Microsystems and a couple of industry players. Various institutions including those from the government and the educational system were also consulted to review its specifications. Hence, JMS got wide support from the industry. JMS not only made the creation of enterprise applications easier, it also works with existing enterprise messaging systems for full interoperability.

Though not designed for multi-threading, JMS may be used in that context. JMS’ main purpose is for object communication. One clear example is when one is using chat servers. Normally, messages are sort of published or sent from the server to various clients who are connected. When using JMS, the destination object need not be connected to the server if one particular client sends a message to the server.

In terms of messaging, JMS supports both “Publish-Subscribe” and “Point to Point” messaging types. In “Publish-Subscribe”, the setup involves multiple publishers sending messages to a “Topic”, and all subscribers to this Topic will receive the messages. In “Point to Point”, the message is relayed between the sender and the receiver. In JMS, these two messaging types are separated into two different interfaces so a particular provider doesn’t have to support both systems.

JMS is also considered a benefit to developers. Because of its widening industry support and standard messaging concepts, developers find it easy to write business applications that are message-based and with improved portability. The service also enables full interoperability between new JMS clients and existing non-JMS clients.

Tea Time Quiz

[forminator_poll id="23176"]
 

Leave a Reply