Closing down

 

Garbage collection alone cannot release all WebSphere MQ resources in a timely manner, especially if the application needs to create many short-lived JMS objects at the Session level or lower. It is therefore important to call the close() methods of the various classes (QueueConnection, QueueSession, QueueSender, and QueueReceiver) when the resources are no longer required.


uj24480_