Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 92400 invoked from network); 8 May 2008 19:46:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2008 19:46:34 -0000 Received: (qmail 99294 invoked by uid 500); 8 May 2008 19:46:35 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 99262 invoked by uid 500); 8 May 2008 19:46:35 -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 99251 invoked by uid 99); 8 May 2008 19:46:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 12:46:35 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 May 2008 19:45:49 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JuC43-0003gI-AX for users@activemq.apache.org; Thu, 08 May 2008 12:46:03 -0700 Message-ID: <17135019.post@talk.nabble.com> Date: Thu, 8 May 2008 12:46:03 -0700 (PDT) From: BlueFox To: users@activemq.apache.org Subject: DefaultMessageListenerContainer and 5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: bluefoxreg@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi I just upgraded to 5.1 and there seems to be a very weird behavior regarding the message redelivery. Before upgrade to 5.1, I had the Spring 2.5.3 and 5.0 running fine with the following setup. 1. I have a single producer sending and recording 100 persistent messages to a queue. 2. maximumRedeliveries for message is set to -1 3. I use Spring DefaultMessageListenerContainer (sessionTransacted = true) to create a single exclusive consumer on the queue, and session.rollback(); is randomly called to simulate transaction failure. 4. When the queue size reaches 0, I verify that all 100 messages are correctly received and in order. Everything was working fine in 5.0, but in 5.1, I noticed that duplicate messages were received. However, if I change the cacheLevelName on the DefaultMessageListenerContainer from the default CACHE_CONSUMER to anything else, the test then runs fine. However, since I also have exponential backoff implemented for redelivery, changing the cache level will render the policy useless since the connection & session are recreated by the container. Thoughts? -- View this message in context: http://www.nabble.com/DefaultMessageListenerContainer-and-5.1-tp17135019s2354p17135019.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.