MQPoolToken

 

public class MQPoolToken
extends Object

java.lang.Object
   |
   +----com.ibm.mq.MQPoolToken
          

The MQPoolToken is used in conjunction with MQEnvironment to allow application components to exercise control over the default connection manager. Typically, an application component constructs an MQPoolToken and registers it with MQEnvironment prior to using WebSphere MQ, and removes the MQPoolToken when it has finished using WebSphere MQ.

The default connection manager can keep track of the number of registered tokens via an MQPoolServices object. It typically destroys any MQManagedConnections in the pool, when the number of registered MQPoolTokens falls to zero.

A connection manager intended for use as the default connection manager can provide a subclass of MQPoolToken. Application components can optionally instantiate the subclass and use this to pass information to the connection manager.


uj14260_