title: batched message listener for spring (extending from DefaultMessageListenerContainer)
body: <p>I have a basic JMS related question in spring.
  Rather than having to consume a single message at a time, it would be convenient to batch messages for a short duration (say a few seconds) and process them in bulk (thereby doing things in bulk). I see that java only provides an <code>onMessage</code> call that gives a single message at a time. I came across <a href="http://sleeplessinslc.blogspot.com/2010/04/batchmessagelistenercontainer-using.html" rel="nofollow">BatchMessageListenerContainer</a> which seems to do this exactly. The recipe is ported to spring-batch where it is being used. </p>
  
  <p>I wanted to know if there are any fundamental problem in the approach itself? If there are no problems, we can propose to the spring folks to add this in the <code>spring-jms</code> artifact itself (without needing to resort to use <code>spring-batch</code> whatsoever).</p>
  
  <p>Thanks!</p>