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:
Juergen Hoeller 2010-09-01 11:21:40 +00:00
parent b8fbe4650e
commit 2b6ff5d9dd
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ public abstract class AbstractPollingMessageListenerContainer extends AbstractMe
}
noMessageReceived(invoker, sessionToUse);
// 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.
return false;
}