title: Synchronous & Asynchronous Message Receiver in 1 queue (Spring w/ ActiveMQ) JMS API
body: <p>I am using Spring JMS with ActiveMQ as the broker and running the application on Tomcat.
  I have one queue, let's say queue.a. In my web app, I already have a MessageListener running whenever I start my web app. The only thing is, I want to add some kind of queue consumer but synchronously. I already try using JmsTemplate etc. But when both of my consumer (listener async &amp; consumer synchronous) is up and I trigger the .receive() method, the message sent to the queue always sucked up to the message listener that have been always online since the web app started. After the end of the timeout,the synchronous receiver did not consume any message at all.</p>
  
  <p>But,when I comment out the messageListener, the synchronous customer run well.</p>
  
  <p>I'm still a newbie,do any of you have any way to make what I want possible? Thanks! Sorry for my bad english :(</p>