ALERT

[WEBINAR] Index Insanity: How to Avoid Database Chaos

Java Message Service (JMS)

Definition - What does Java Message Service (JMS) mean?

Java Message Service (JMS) is an application programming interface (API) by Sun Microsystems that functions as Java message-oriented middleware. It is designed for an exchange of loosely coupled, reliable and asynchronous messages between different software application components (called clients), which are based on the Java 2 Platform, Enterprise Edition (J2EE).

JMS is a messaging standard capable of creating, sending, receiving and reading messages as requests, reports, or events consumed by the software application components, not by humans. JMS allows programs in dissimilar systems, or written in different programming languages, to coordinate with each other via messages.

Techopedia explains Java Message Service (JMS)

JMS API uses two messaging models:

  1. Point-to-point, or Queuing, Model
    JMS is loosely coupled by the virtue of an intermediary component, a queue. Thus, software components communicate indirectly. This means that message-sending software components will not require knowledge about the receiving software component. This model is characterized by:

    • Only one component is receiving the message.
    • The source component is not operating when the receiving component receives the message.
    • The receiving component is not operating when the message is sent.
    • Messages successfully processed are being acknowledged by the receiving component.


  2. Publish-and-Subscribe Model
    This model works as an anonymous bulletin board. A subscribing component may register the need to receive messages on a specified topic, but neither component (publisher or subscriber) is required to know about the other. This model is characterized by multiple components receiving the message and a timing dependency between publishing components and subscribing components as follows:

    • The publisher component creates a message topic for other components to subscribe to.
    • The subscriber component remains able to receive messages, unless a durable subscription is established.
    • If a durable subscription is established, messages published while the subscriber is not able to receive messages will be redistributed whenever the receiving component reconnects.

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
Tweat cdn.techopedia.com
"Techopedia" on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.