background image

JMS Administered Objects

<< The JMS API Programming Model | JMS Connection Factories >>
<< The JMS API Programming Model | JMS Connection Factories >>

JMS Administered Objects

Messages
Figure 31­5
shows how all these objects fit together in a JMS client application.
This section describes all these objects briefly and provides sample commands and code
snippets that show how to create and use the objects. The last subsection briefly describes JMS
API exception handling.
Examples that show how to combine all these objects in applications appear in later sections.
For more details, see the JMS API documentation, which is part of the Java EE API
documentation.
JMS Administered Objects
Two parts of a JMS application, destinations and connection factories, are best maintained
administratively rather than programmatically. The technology underlying these objects is
likely to be very different from one implementation of the JMS API to another. Therefore, the
management of these objects belongs with other administrative tasks that vary from provider to
provider.
Msg
Connection
Session
Message
Producer
Message
Consumer
Connection
Factory
Destination
Destination
Creates
Creates
Creates
Creates
Creates
Sends
To
Receives
From
FIGURE 31­5
The JMS API Programming Model
The JMS API Programming Model
Chapter 31 · The Java Message Service API
901