WebSphere MQ class: MQConnectionConsumer
java.lang.Object | +----com.ibm.mq.jms.MQConnectionConsumer |
For application servers, Connections provide a special facility to create a ConnectionConsumer. A Destination and a Property Selector specify the messages that it is to consume. Also, a ConnectionConsumer must be given a ServerSessionPool to use to process its messages.
See also: QueueConnection, and TopicConnection.
public void close() throws JMSException
Because a provider may allocate some resources outside of the JVM on behalf of a ConnectionConsumer, clients should close them when they are not needed. You cannot rely on garbage collection to reclaim these resources eventually, because this may not occur soon enough.
public ServerSessionPool getServerSessionPool() throws JMSException
Get the server session associated with this connection consumer.