createConnectionConsumer

 

public ConnectionConsumer createConnectionConsumer(Destination destination,
                                                   String messageSelector, 
                                                   ServerSessionPool sessionPool, 
                                                   int maxMessages) 
              throws JMSException;

Creates a connection consumer for this connection. This facility is only used by advanced JMS clients.

Parameters

  • destination - the destination to access

  • messageSelector - only messages with properties matching the message selector expression are delivered. A value of null or an empty string indicates that there is no message selector for the message consumer.

  • sessionPool - the server session pool to associate with this connection consumer

  • maxMessages - the maximum number of messages that can be assigned to a server session at one time

Returns

  • the connection consumer.

Exceptions

  • JMSException - if the Connection object fails to create a connection consumer due to some internal error or invalid arguments for sessionPool and messageSelector.

  • InvalidDestinationException - if an invalid destination is specified.

  • InvalidSelectorException - if the message selector is invalid.


uj27500_