ConnectionConsumer

 



public interface ConnectionConsumer

WebSphere MQ class: MQConnectionConsumer



java.lang.Object
   |
   +----com.ibm.mq.jms.MQConnectionConsumer

For appservers, 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.

 

Methods

close()
public void close() throws JMSException

Because a provider can allocate some resources outside the JVM on behalf of a ConnectionConsumer, clients must close them when they are not needed. You cannot rely on garbage collection to reclaim these resources eventually, because this might not occur soon enough.

Throws:
JMSException if a JMS implementation fails to release resources on behalf of ConnectionConsumer, or if it fails to close the connection consumer.

getServerSessionPool()
public ServerSessionPool getServerSessionPool()
                                         throws JMSException

Get the server session associated with this connection consumer.

Returns:
The server session pool used by this connection consumer.

Throws:
JMSException if a JMS implementation fails to get the server session pool associated with this connection consumer because of an internal error.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.