{
throw new IllegalStateException("Cannot create a durable subscriber on a QueueSession");
}
if (topic == null)
{
throw new InvalidDestinationException("Cannot create a durable subscriber on a null topic");
}
if (!(topic instanceof JBossTopic))
{
throw new InvalidDestinationException("Not a JBossTopic:" + topic);
}
messageSelector = checkAndTrim(messageSelector);
ConsumerDelegate cd = delegate.
createConsumerDelegate((JBossTopic)topic, messageSelector, noLocal, name, false, true);