A set of general rules govern how a multithreaded application can
use XMS objects.
These rules are as follows:
- Only objects of the following types can be used concurrently on different
threads:
- ConnectionFactory
- Connection
- ConnectionMetaData
- Destination
- A Session object can be used on only a single thread at any one time.
- Any object created by a session cannot be used on one thread at the same
time that the session, or any object created by the session, is being used
on another thread.
Exceptions to these rules are indicated by entries labelled "Thread context" in
the interface definitions of the methods in Reference.