createDurableConnectionConsumer
public ConnectionConsumer createDurableConnectionConsumer(Topic topic, String name, String messageSelector, ServerSessionPool sessionPool, int maxMessageCount) throws JMSException;
Creates a durable connection consumer for this connection. This is facility is only used by advanced JMS clients.
- Parameters
- topic - the topic to be accessed.
- name - the name of the durable subscription.
- messageSelector - delivers only those messages with properties that match the message selector expression. 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.
- maxMessageCount - the maximum number of messages that can be assigned to a server session at one time.
- Returns
- the connection consumer.
- Exceptions
- JMSException - if JMS Connection fails to create a durable connection consumer due to some internal error or invalid arguments for sessionPool and message selector.
- InvalidSelectorException - if the message selector is invalid.
uj27510_