Calling jmsTemplate.receiveAndConvert() inside onMessage() of a JmsListener results in large numbers of broker connections

Solution Unverified - Updated -

Issue

Calling jmsTemplate.receiveAndConvert() inside onMessage() of a JmsListener results in large numbers of broker connections

Broker message consumption slows to a crawl if broker's queue grows too large

org.apache.activemq.MessageDispatchChannel.dequeue(MessageDispatchChannel.java:77)
org.apache.activemq.ActiveMQMessageConsumer.dequeue(ActiveMQMessageConsumer.java:419)
org.apache.activemq.ActiveMQMessageConsumer.receive(ActiveMQMessageConsumer.java:542)
org.springframework.jms.core.JmsTemplate.doReceive(JmsTemplate.java:731)

Environment

  • Fuse Message Broker 5.x
  • Apache ActiveMQ 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In