NonStop JMS User's Manual (NonStop JMS 2.0+)
NonStop Server for Java Message Service User’s Manual—522356-002
3-1
3
NSJMS and JMS Client Applications
This section provides an overview of the JMS model, describes NSJMS administered
objects, and provides information about the common tasks performed by JMS client
applications including information about how NSJMS implements the JMS interfaces
when performing the tasks.
The JMS Model
This defines an abstract view of a messaging service but does not define an
implementation. The JMS model is based on a set of generic interfaces that are
defined in Sun’s javax.jms package. The generic JMS interfaces described below are
only a few of the generic interfaces used in application programs to perform common
tasks.
Messaging Models
The JMS model supports Point-to-Point and Publish/Subscribe messaging models.
Within each messaging model, the generic JMS interfaces are further defined to
address behavior specific to each messaging model.
Point-to-Point (PTP)
A PTP messaging application is a one-to-one messaging model which uses queues for
messaging destinations. A message is sent by a sending client to a specific queue
where the message can be received by the receiving client. A queue will retain a
message until it is received by the receiving client or until the message expires.
Generic JMS Interfaces Description
Connection Provides access to the underlying NSJMS implementation, and
is used to create a Session.
Session Provides a context for sending and receiving messages,
including the methods used to create MessageProducers and
MessageConsumers.
MessageProducer Used to send messages.
MessageConsumer Used to receive messages.