261262263264265266267268269270271
} } finally { msgContext.clear(); } } public synchronized void removeSubscription(ConnectionContext context, Subscription sub) throws Exception{
341342343344345346347348349350351
node.unlock(); msgContext.setMessageReference(node); dispatchPolicy.dispatch(node,msgContext,consumers); } }finally{ msgContext.clear(); } } } public void send(final ProducerBrokerExchange producerExchange, final Message message) throws Exception {
169170171172173174175176177178179
if (result) { doAddRecoveredMessage(message); } } finally { msgContext.clear(); } return result; } public ActiveMQDestination getActiveMQDestination() {
600601602603604605606607608609610
if (!dispatchPolicy.dispatch(message, msgContext, consumers)) { onMessageWithNoConsumers(context, message); } } finally { msgContext.clear(); dispatchValve.decrement(); } } /**
630631632633634635636637638639640
} } finally { dispatchValve.decrement(); if (msgContext != null) { msgContext.clear(); } } } public void messageExpired(ConnectionContext context, Subscription subs, MessageReference reference) {
582583584585586587588589590591592
} } finally { dispatchValve.decrement(); if(msgContext != null) { msgContext.clear(); } } } public void messageExpired(ConnectionContext context,Subscription subs, MessageReference reference) {
671672673674675676677678679680681
} } finally { dispatchLock.readLock().unlock(); if (msgContext != null) { msgContext.clear(); } } } private final Runnable expireMessagesTask = new Runnable() {
636637638639640641642643644645646
182183184185186187188189190191192