title: Spring JMS consumer concurrency-prototype scope bean needed
body: <p>I have a Spring JMS consumer with a max of 2 concurrent consumers and minimum 1 consumer up all the time.</p>
  <p>I  am creating bean and trying to send a notification to a 3rd party so here that bean is created in singleton scope, but I want to created 2 different objects for 2 different consumers.</p>
  <p>To check if 2 different objects got created or single object shared by both consumers I am checking if object is <code>null</code> or not. If <code>null</code> then only it will be creating object otherwise no. So it only creating object only once.</p>
  <p>I tried Prototype scope but its not working.</p>
  <p>Please suggest?</p>