Java Reference
In-Depth Information
Java Message Service (JMS)
The Java Message Service 2.0 Specification was developed under JSR 343. This
section just gives you an overview of improvements in the API. The complete doc-
ument specification (for more information) can be downloaded from
aboutJava/communityprocess/final/jsr343/index.html .
When to use JMS
JMS is a Java API for interacting with Message Oriented Middleware ( MOM ). This
type of middleware is born from the need to solve observed limits in synchronous con-
nections. This is because synchronous connections are susceptible to network fail-
ures and require that the connected systems are available at the same time. Hence,
the MOMs offer an integration system based on the exchange of messages that can
be treated synchronously or asynchronously depending on the availability of the in-
tegrated systems.
The following image shows an architecture in which systems communicate through
Based on the foregoing, we conclude that JMS can be used in the following cases:
• Transaction processing large amount of data (for example, synchronization of
databases) through an unstable network
• Communication between systems that are not always available simultan-
• Sending of data to multiple systems
• Asynchronous processing
To finish with this point, you should notice that the establishment of an integration sys-
tem based on JMS requires that all components that need to be integrated be under
Search WWH ::

Custom Search