title: How to: Implement a BatchMessageListenerContainer for bulk consuming a JMS queue
body: <p>I recently faced the need for a JMS consumer in Spring Integration - capable of consuming burst of high volume without stressing my target Oracle database with too many commits.</p>
  
  <p>The DefaultMessageListenerContainer does not seem to support anything but message by message transactions.</p>
  
  <p>I googled for solutions and found a couple - but the lot of them suffered from being implemented not by inheritance from DMLC but rather by cloning and modifying the original source code from same - making it vulnerable to break in case I later wish to move to a more recent version of spring-jms. Also the code being cloned referenced private properties of DMLC which consequently had to be left out. And to make it all work also a couple of interfaces and a custom message listener was needed. All in all I did not feel comfortable.</p>
  
  <p>So - what to do?</p>