I am using polling consumer.

from("timer://foo?period=5000").bean(cool, "someBusinessLogic");

public static class MyCoolBean {

  private ConsumerTemplate consumer;

   public void setConsumer(ConsumerTemplate consumer) {
        this.consumer = consumer;
    }

   public void someBusinessLogic() {

      Exchange exchange
= 
consumer.receive("catalogJms:queue:queueName?mapJmsMessage=false&acknowledgementModeName=CLIENT_ACKNOWLEDGE");

}


Even though i am not sending acknowledgement for received message, each
time it is polling different message. Any idea why that's happening?

Reply via email to