title: Does Spring JmsTemplate close connections by default?
body: <p>I wrote a JMS application that runs within a web service in  Glassfish (also deployed it in JBoss), I noticed that after I process several messages through a MessageListener MDP, the JMS server runs out of connections!</p>
  
  <p>Tried it with both Apache ActiveMQ and Glassfish internal JMS broker (openMQ?)</p>
  
  <p>Is there a way to check why this is happening? If this is the default behavior of JmsTemplate, what is my alternative for developing JMS producers and consumers the right way?</p>
  
  <p>Thanks! </p>