background image

The Java Message Service API

<< Client Application with Basic Authentication | What Is the JMS API >>
<< Client Application with Basic Authentication | What Is the JMS API >>

The Java Message Service API

The Java Message Service API
This chapter provides an introduction to the Java Message Service (JMS) API, a Java API that
allows applications to create, send, receive, and read messages using reliable, asynchronous,
loosely coupled communication. It covers the following topics:
"Overview of the JMS API" on page 893
"Basic JMS API Concepts" on page 896
"The JMS API Programming Model" on page 900
"Writing Simple JMS Client Applications" on page 911
"Creating Robust JMS Applications" on page 935
"Using the JMS API in a Java EE Application" on page 954
"Further Information about JMS" on page 961
Overview of the JMS API
This overview of the JMS API answers the following questions.
"What Is Messaging?" on page 893
"What Is the JMS API?" on page 894
"When Can You Use the JMS API?" on page 894
"How Does the JMS API Work with the Java EE Platform?" on page 896
What Is Messaging?
Messaging is a method of communication between software components or applications. A
messaging system is a peer-to-peer facility: A messaging client can send messages to, and
receive messages from, any other client. Each client connects to a messaging agent that provides
facilities for creating, sending, receiving, and reading messages.
Messaging enables distributed communication that is loosely coupled. A component sends a
message to a destination, and the recipient can retrieve the message from the destination.
31
C H A P T E R
3 1
893