Question: how jms message listener works?
Answer: JMS Message Listeners. A message listener is an object that acts as an asynchronous event handler for messages. This object implements the MessageListener interface, which contains one method, onMessage . ... After you register the message listener, you call the start method on the Connection to begin message delivery.