createConsumer

 

public MessageConsumer createConsumer(Destination destination, 
                                      String messageSelector, 
                                      boolean noLocal) 
              throws JMSException;

Creates MessageConsumer for the specified Destination, using a message selector.

Parameters

  • destination - the Destination to access.

  • messageSelector - the message selector

  • noLocal - when the destination is a topic, true inhibits the delivery of messages published by its own connection. The behavior for NoLocal is ignored if the destination is a queue.

Returns

  • MessageConsumer

Exceptions

  • JMSException - if the command fails due to some internal JMS error.


uj30120_