Details
Description
A bean in a activemq route is consuming messages from another activemq queue. Instead of reading all queued messages, it always gets just the first message in the queue.
while ((exchange = consumer.receive("activemq:queue", 2000l)) != null) { ... }
- This did not happen with ActiveMQ 5.2.0
- This does not happen if Spring transaction support is not set for activemq component.
- This does not happen if consumer bean is invoked from direct: route.