closeImmediate

Stopping a queue manager using the closeImmediate method

This closes Queue Manager immediately.

After this method has been called, no more event notifications are dispatched to message listeners. Messages might complete their arrival after this method has been called, and before it finishes. Such messages are not notified, and therefore message arrival does not generate a message event.
MQeQueueManager qmgr = new MQeQueueManager();  
MQeMsgObject msgObj = null;    
try {      
  qmgr.putMessage(null, "MyQueue", msgObj, null, 0);  
} catch (MQeException e) {// Handle the exception here  
}  
qmgr.closeImmediate();  // close QMgr

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.