Java Reference
In-Depth Information
dition receive JMS messages asynchronously. (Applets, however, are not required
to support the JMS API.)
• Message-driven beans, which are a kind of enterprise bean, enable the asynchron-
ous consumption of messages. A JMS provider can optionally implement concur-
rent processing of messages by message-driven beans.
• Message send and receive operations can participate in distributed transactions,
which allow JMS operations and database accesses to take place within a single
transaction.
The JMS API enhances the Java EE platform by simplifying enterprise development, al-
lowing loosely coupled, reliable, asynchronous interactions among Java EE components
and legacy systems capable of messaging. A developer can easily add new behavior to
a Java EE application that has existing business events by adding a new message-driven
bean to operate on specific business events. The Java EE platform, moreover, enhances the
JMS API by providing support for distributed transactions and allowing for the concurrent
consumption of messages. For more information, see the Enterprise JavaBeans specifica-
tion, v3.1.
The JMS provider can be integrated with the application server using the Java EE Con-
nector architecture. You access the JMS provider through a resource adapter. This capab-
ility allows vendors to create JMS providers that can be plugged in to multiple application
servers, and it allows application servers to support multiple JMS providers. For more in-
formation, see the Java EE Connector architecture specification, v1.6.
Basic JMS API Concepts
This section introduces the most basic JMS API concepts, the ones you must know to get
started writing simple application clients that use the JMS API.
The next section introduces the JMS API programming model. Later sections cover more
advanced concepts, including the ones you need in order to write applications that use
message-driven beans.
JMS API Architecture
A JMS application is composed of the following parts.
• A JMS provider is a messaging system that implements the JMS interfaces and
provides administrative and control features. An implementation of the Java EE
platform includes a JMS provider.
Search WWH ::




Custom Search