* @since 1.1
*/
public ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName,
String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException {
checkClosed();
ConsumerInfo info = new ConsumerInfo();
info.setId(this.packetIdGenerator.generateId());
info.setConsumerId(this.consumerIdGenerator.generateId());
info.setDestination(ActiveMQMessageTransformation.transformDestination(topic));
info.setSelector(messageSelector);
info.setConsumerName(subscriptionName);
return new ActiveMQConnectionConsumer(this, sessionPool, info, maxMessages);
}