Programming with WebSphere MQ JMS

Writing WebSphere MQ JMS applications
The JMS model
Building a connection
Retrieving the factory from JNDI
Using the factory to create a connection
Creating factories at runtime
Choosing client or bindings transport
Specifying a range of ports for client connections
Obtaining a session
Sending a message
Setting properties with the set method
Message types
Receiving a message
Message selectors
Asynchronous delivery
Closing down
Java(TM) Virtual Machine hangs at shutdown
Handling errors
Exception listener
Using Secure Sockets Layer (SSL)
SSL administrative properties
Writing WebSphere MQ JMS publish/subscribe applications
Introduction
Getting started with WebSphere MQ JMS and publish/subscribe
Choosing a broker
Setting up the broker to run WebSphere MQ JMS
Writing a simple publish/subscribe application connecting through WebSphere(R) MQ
Import required packages
Obtain or create JMS objects
Publish messages
Receive subscriptions
Close down unwanted resources
TopicConnectionFactory administered objects
Topic administered objects
Using topics
Topic names
Creating topics at runtime
Subscriber options
Creating non-durable subscribers
Creating durable subscribers
Using message selectors
Suppressing local publications
Combining the subscriber options
Configuring the base subscriber queue
Subscription stores
Solving publish/subscribe problems
Incomplete publish/subscribe close down
Subscriber cleanup utility
Manual cleanup
Cleanup from within a program
Handling broker reports
Other considerations
Writing WebSphere MQ JMS 1.1 applications
The JMS 1.1 model
Building a connection
Retrieving a connection factory from JNDI
Creating a connection factory at runtime
Using a connection factory to create a connection
Starting a connection
Using a client channel definition table
Specifying a range of ports for client connections
Channel compression
Obtaining a session
Destinations
Sending a message
Message types
Receiving a message
Creating durable topic subscribers
Message selectors
Suppressing local publications
Configuring the consumer queue
Subscription stores
JMS persistent messages
Asynchronous delivery
Consumer cleanup utility for the publish/subscribe domain
Manual cleanup
Cleanup from within a program
Closing down
Java(TM) Virtual Machine hangs at shutdown
Handling errors
Exception listener
Handling broker reports
Other considerations
Using channel exits
Using Secure Sockets Layer (SSL)
SSL administrative properties
JMS messages
Message selectors
Mapping JMS messages onto WebSphere MQ messages
The MQRFH2 header
JMS fields and properties with corresponding MQMD fields
Mapping JMS fields onto WebSphere MQ fields (outgoing messages)
Mapping WebSphere MQ fields onto JMS fields (incoming messages)
Mapping JMS to a native WebSphere MQ application
Message body
WebSphere MQ JMS Application Server Facilities
ASF classes and functions
ConnectionConsumer
Planning an application
Error handling
Application server sample code
MyServerSession.java
MyServerSessionPool.java
MessageListenerFactory.java
Examples of ASF use
Load1.java
CountingMessageListenerFactory.java
ASFClient1.java
Load2.java
LoggingMessageListenerFactory.java
ASFClient2.java
TopicLoad.java
ASFClient3.java
ASFClient4.java
ASFClient5.java