I'm facing a problem with batching in the BatchMessageListenerContainer. I pass to it a repeatTemplate with
But while processing the messages, it does so one per transaction rather than
processing 5 messages in the same transaction as per completion policy.
On some debugging, I noticed that doBatchCallBack() calls the super.receiveAndExecute() which is in AbstractPollingMessageListenerContainer
In this method, the transaction is explicitly being committed every time, if executed successfully. There is no hook that can be used to tell it to do a commit/rollback conditionally.
Am I missing something here or is this an issue? Please help!!