Home:ALL Converter>Camel JMS - does it pull messages from queue in a loop?

Camel JMS - does it pull messages from queue in a loop?

Ask Time:2015-06-01T22:49:53         Author:Maciej Miklas

Json Formatter

I've enabled JMS transactions as described in this document: http://camel.apache.org/transactional-client.html

My queue subscriber is registered as follows: from("jms:queue:xyz).to(MyBean.class)

There are no messages on this queue, but I can see in Camel log, that it starts and ends multiple JMS transactions and this happens multiple times with different thread id. This whole pooling happens in a dead loop running non-stop

Do they really pull for JMS messages in an loop ? Can I switch it to push?

Author:Maciej Miklas,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/30576594/camel-jms-does-it-pull-messages-from-queue-in-a-loop
yy