Set<String> subscriptionIds = subscription.getCscSubscriptionIds().keySet();
for (String id : subscriptionIds) {
abortMessage.setSessionId(id);
try {
this.serverAbortSubscription(abortMessage, new CommandCallback(false), AppContext
.getBasicConfiguration().getSrvAbortOTIMillis());
} catch (ConnectionPoolBusyException e) {
LOGGER.warn("aborting subscription failed because of busy connection pool. " + e.toString());
} catch (Exception e) {
LOGGER.warn("aborting subscription failed. " + e.toString());
}
}
subscription.getCscSubscriptionIds().clear();
// subscription is of type cascaded - do not forward to server
continue;
}
try {
this.serverAbortSubscription(abortMessage, new CommandCallback(false), AppContext.getBasicConfiguration()
.getSrvAbortOTIMillis());
} catch (ConnectionPoolBusyException e) {
LOGGER.warn("aborting subscription failed because of busy connection pool. " + e.toString());
} catch (Exception e) {
LOGGER.warn("aborting subscription failed. " + e.toString());
}
} else {
SessionLogger.logAbortSession((Session) session, reason);
try {
this.serverAbortSession(abortMessage, new CommandCallback(false), AppContext.getBasicConfiguration()
.getSrvAbortOTIMillis());
} catch (ConnectionPoolBusyException e) {
LOGGER.warn("aborting session failed because of busy connection pool. " + e.toString());
} catch (Exception e) {
LOGGER.warn("aborting session failed. " + e.toString());