Session

A session is defined as the time between the unitization of the MQSeries Everyplace system, and its termination, within a single memory space. In terms of windows there is one session for each processes. With the underlying implementation being in Java , this implies that a session has only one queue manager.

The session should be initialized and then terminated before the process exits. While session initialization and termination are being performed, no other thread should access the MQSeries Everyplace API. Failure to follow these procedures results in unpredictable errors. After termination any thread accessing the API receives an error.

Session unitize and terminate should be called on the same thread.

API calls

Full details of the session initialize and terminate calls are provided in the MQSeries Everyplace C Programming Guide. Both calls take an exception block.



© IBM Corporation 2002. All Rights Reserved