title: Multithreaded JMS receiving in Spring
body: <p>I'm trying to write a multithreaded implementation for JMS message processing from a queue.</p>
  
  <p>I've tried with DefaultMessageListenerContainer and SimpleMessageListenerContainer classes.</p>
  
  <p>The problem I have is that it seems like just a single instance of the MessageListener class gets ever instantiated, no matter how I configure it. This forces me to unnecessarily write stateless or thread-safe MessageListener implementations, since I have the ListenerContainer configured to use multiple threads (concurrentConsumers=8).</p>
  
  <p>Is there an obvious solution to this that I'm overlooking?</p>