Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1054101AE for ; Fri, 20 Dec 2013 04:26:17 +0000 (UTC) Received: (qmail 8815 invoked by uid 500); 20 Dec 2013 04:26:15 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 8796 invoked by uid 500); 20 Dec 2013 04:26:12 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 8788 invoked by uid 99); 20 Dec 2013 04:26:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Dec 2013 04:26:10 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of agrawal.tarun23@gmail.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-ig0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Dec 2013 04:26:05 +0000 Received: by mail-ig0-f172.google.com with SMTP id hl1so13992798igb.5 for ; Thu, 19 Dec 2013 20:25:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=KDZMcBHB975vDvRobYcvUsfBvGoSMwC2YtIqFn2OBOI=; b=aQNPmefQ8XKlk8SCzbl7fJEckKXZwPba4qYh9XL89HkRMLTqF+LoAbC8I5Hi6BZJOR jA908Txo7jzdtGhEfM4LanCRlzoQWgj+AUN6TK9yIX2kTF82aBmbIBZN8i/HFx8Exo/i 6C8LgIv1XM6yANU9hTkbiT47B4/4Bc5BrjOkeMWycjylEWq/MKchHGNXgTeplvcqgCbR XjfC5FHhungb5WC/DBGd39zM7JgBCTkOe7uxVWDHiSYmIsdOzaUbpqQRHe32sQGoQcRi DbCEqafhKaWMDTLpZVO9X2WcNc3BqeBREYwe8ejAudi0L4akZILkQeMnOhDZEbAt3wwa QxhA== X-Received: by 10.43.77.212 with SMTP id zj20mr4005209icb.5.1387513545131; Thu, 19 Dec 2013 20:25:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.162.169 with HTTP; Thu, 19 Dec 2013 20:25:25 -0800 (PST) From: Tarun Kumar Date: Fri, 20 Dec 2013 09:55:25 +0530 Message-ID: Subject: polling consumer with acknowledgement To: users Content-Type: multipart/alternative; boundary=047d7b45041efa902904edefab47 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b45041efa902904edefab47 Content-Type: text/plain; charset=ISO-8859-1 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? --047d7b45041efa902904edefab47--