fixed no-message-received commit case for non-cached Sessions (SPR-7478)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3623 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
b8fbe4650e
commit
2b6ff5d9dd
|
|
@ -351,7 +351,7 @@ public abstract class AbstractPollingMessageListenerContainer extends AbstractMe
|
||||||
}
|
}
|
||||||
noMessageReceived(invoker, sessionToUse);
|
noMessageReceived(invoker, sessionToUse);
|
||||||
// Nevertheless call commit, in order to reset the transaction timeout (if any).
|
// Nevertheless call commit, in order to reset the transaction timeout (if any).
|
||||||
commitIfNecessary(session, message);
|
commitIfNecessary(sessionToUse, message);
|
||||||
// Indicate that no message has been received.
|
// Indicate that no message has been received.
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue