NonStop JMS User's Manual (H06.03+, J06.03+, NonStop JMS 3.0+)
NSJMS and JMS Client Applications
NonStop Server for Java Message Service User’s Manual—522356-006
4-3
Writing JMS Client Applications
JMS clients use administered objects to create connections to NSJMS and to specify
the destinations for messages. All NSJMS-specific information is contained in
implementations of these NSJMS administered objects:
Writing JMS Client Applications
JMS clients hosted on the operating system use NSJMS to send and receive
messages. Descriptions of common tasks that enable JMS clients to send and receive
messages and information about how NSJMS implements the JMS interfaces when
performing the tasks are described in:
Creating a Connection on page 4-4
Transactions on page 4-6
Sending Messages on page 4-7
Specifying a Destination on page 4-7
Destination Names on page 4-8
Temporary Destinations on page 4-8
Destination IDs on page 4-8
Persistence on page 4-8
Priority on page 4-9
Receiving Messages on page 4-9
No-Local on page 4-11
Using Message Listeners on page 4-11
Best Practices for Developing a JMS Client on page 4-12
Threading on page 4-15
Message Expiration Values on page 4-16
NSJMS Administered Objects Description
QueueConnectionFactory Used within a PTP messaging application by JMS clients
for creating connections to NSJMS.
TopicConnectionFactory Used within a Pub/Sub messaging application by JMS
clients for creating connections to NSJMS.
Queue Used within a PTP messaging application by JMS clients
to specify the destinations to and from which the JMS
clients send and receive messages.
Topic Used within a Pub/Sub messaging application by JMS
clients to specify the destinations to and from which the
JMS clients send and receive messages.