Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 32233 invoked from network); 15 Mar 2011 20:46:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Mar 2011 20:46:15 -0000 Received: (qmail 72559 invoked by uid 500); 15 Mar 2011 20:46:14 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 72536 invoked by uid 500); 15 Mar 2011 20:46:14 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 72528 invoked by uid 99); 15 Mar 2011 20:46:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2011 20:46:14 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2011 20:46:07 +0000 Received: by qwf6 with SMTP id 6so941776qwf.2 for ; Tue, 15 Mar 2011 13:45:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=Mu2/7eMoYoHODrA2dK0+9bOKWVBzCmrobMIKAAgDpwY=; b=IOu/XgOGvFzHQQqMSUWedB3+JqoNRojPwb43/5CscmXIX3tcTzA/yDTaf4hK90nRwQ BRdoLFfne26RvWMjmMAY9pKgsmwREckBfSPQfR+aENJogd0sII452nZGijTzX/wEP5TA 8fI59+GdAb1hwRYeIZ+kD3XYWRP6q24r9J1Cc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=WL0OGHz3DCqys/Z0VVYBPNPl2g+h4lpZrjWqrt+Y31W793jdJUWwbXx+ohCFJFO6t2 1qxO6wBBcYDRwZWSkggzl1TQaHJpUjqnBSD7k7OZ4oslHMcvtS+YXf9gcyFMahwIjmfy zimNi0SY5mTG7ISWSMt1gaIf3327lnMf4psZ0= Received: by 10.229.0.202 with SMTP id 10mr2735056qcc.173.1300221945300; Tue, 15 Mar 2011 13:45:45 -0700 (PDT) Received: from [192.168.2.150] (c-69-143-50-138.hsd1.va.comcast.net [69.143.50.138]) by mx.google.com with ESMTPS id s10sm164101qco.11.2011.03.15.13.45.43 (version=SSLv3 cipher=OTHER); Tue, 15 Mar 2011 13:45:44 -0700 (PDT) Subject: Re: NMS 1.5 client not recognizing expired messages From: Timothy Bish To: users@activemq.apache.org In-Reply-To: <1300220247835-3357650.post@n4.nabble.com> References: <1300220247835-3357650.post@n4.nabble.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 15 Mar 2011 16:45:34 -0400 Message-ID: <1300221934.2713.22.camel@office> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 (2.32.2-1.fc14) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2011-03-15 at 13:17 -0700, TheFarmer wrote: > I have a .NET consumer listening for messages. The operation fails and > message is rolled back and retries. This happens over and over and I'm > happy with that. But eventually the time to live expires and I expect the > retrying to stop. > > What happens is the ActiveMQ server does push this message into the DLQ but > the client did not notice this and it keeps retrying. This also results in > repeated errors in the activemq.log: > > 2011-03-15 11:05:33,446 | WARN | ignoring ack MessageAck {commandId = > 14875, responseRequired = false, ackType = 2, consumerId = > ID:abc-05-4864-634357153348730772-1:0:2:1, firstMessageId = > ID:abc-05-4864-634357153348730772-1:0:3:1:1, lastMessageId = > ID:abc-05-4864-634357153348730772-1:0:3:1:1, destination = > queue://bms.GetBatchResponse, transactionId = > TX:ID:abc-05-4864-634357153348730772-1:0:1922, messageCount = 1}, for > already expired message: Message ID:abc-05-4864-634357153348730772-1:0:3:1:1 > dropped=true acked=true locked=false | > org.apache.activemq.broker.region.QueueSubscription | ActiveMQ Transport: > tcp:///234.11.234.101:4865 > > The same this happens when the message on the activeMQ server is deleted > using the ActiveMQ Administration web site. Even though the message is gone > on the server, the client continues to retry it. > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/NMS-1-5-client-not-recognizing-expired-messages-tp3357650p3357650.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. Have you checked to see if your clock on the client machine is synchronized with the Broker machine's clock? Local Transactions hold messages locally and redeliver them from local memory so if the clock isn't sync'd then the client would redeliver the message when you roll back the transaction regardless of the message being expired on the broker. Regards -- Tim Bish ------------ FuseSource Email: tim.bish@fusesource.com Web: http://fusesource.com Twitter: tabish121 Blog: http://timbish.blogspot.com/