close

 

public void close() throws JMSException;

Closes all open queues left in enumerated objects. Because a provider can allocate some resources outside the JVM on behalf of an MQQueueBrowser, clients must close them when they are not needed. We cannot rely on garbage collection to reclaim these resources eventually, because this might not occur soon enough.

Exceptions

  • JMSException - if JMS fails to close this browser because of a JMS error.


uj29670_