ConnectionConsumer


public interface ConnectionConsumer

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.

Methods

close()
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.

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.



© IBM Corporation 1997, 2002. All Rights Reserved