camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tarun Kumar <agrawal.taru...@gmail.com>
Subject polling consumer with acknowledgement
Date Fri, 20 Dec 2013 04:25:25 GMT
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?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message