SPRNET-1130 - Wrong MessageQueueException handling in DistributedTxMessageListenerContainer and TransactionalMessageListenerContainer

This commit is contained in:
markpollack
2009-01-09 15:00:36 +00:00
parent 4ec8d36525
commit fa904ce51d
3 changed files with 2 additions and 3 deletions

View File

@@ -134,7 +134,6 @@ namespace Spring.Messaging.Listener
/// <summary>
/// Wait for all listener threads to exit and closes the DefaultMessageQueue.
/// <see cref="AbstractMessageListenerContainer.CloseQueueHandle"/>
/// </summary>
protected override void DoShutdown()
{

View File

@@ -116,7 +116,7 @@ namespace Spring.Messaging.Listener
}
catch (MessageQueueException ex)
{
if (ex.MessageQueueErrorCode != MessageQueueErrorCode.IOTimeout)
if (ex.MessageQueueErrorCode == MessageQueueErrorCode.IOTimeout)
{
//expected to occur occasionally

View File

@@ -309,7 +309,7 @@ namespace Spring.Messaging.Listener
}
catch (MessageQueueException ex)
{
if (ex.MessageQueueErrorCode != MessageQueueErrorCode.IOTimeout)
if (ex.MessageQueueErrorCode == MessageQueueErrorCode.IOTimeout)
{
//expected to occur occasionally
if (LOG.IsTraceEnabled)