avoid hanging in case of shutdown errors (SPR-7511)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3622 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller 2010-09-01 11:19:11 +00:00
parent 5cf889307a
commit b8fbe4650e
1 changed files with 29 additions and 27 deletions

View File

@ -977,6 +977,7 @@ public class DefaultMessageListenerContainer extends AbstractPollingMessageListe
handleListenerSetupFailure(ex, true);
}
}
finally {
synchronized (lifecycleMonitor) {
decreaseActiveInvokerCount();
lifecycleMonitor.notifyAll();
@ -1011,6 +1012,7 @@ public class DefaultMessageListenerContainer extends AbstractPollingMessageListe
}
}
}
}
private boolean executeOngoingLoop() throws JMSException {
boolean messageReceived = false;