checkIfOpen("unsubscribe");
checkControlThread();
try {
TopicSubscriber sub = (TopicSubscriber)this.durableSubscriptionMap.remove(subName);
if (sub == null)
throw new JMSException(ME, "unsubscribe '" + subName + "'failed because the topic has not been found in this session");
sub.close();
}
catch (Exception ex) {
throw new JMSException(ME, "unsubscribe '" + subName + "'failed. Cause: " + ex.getMessage());
}
}