fixed no-message-received commit case for non-cached Sessions (SPR-7478)
This commit is contained in:
parent
d7e0776148
commit
3e5aca86d5
|
|
@ -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