Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 47862 invoked from network); 16 Mar 2010 19:28:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Mar 2010 19:28:06 -0000 Received: (qmail 44742 invoked by uid 500); 16 Mar 2010 19:28:06 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 44723 invoked by uid 500); 16 Mar 2010 19:28:06 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 44715 invoked by uid 99); 16 Mar 2010 19:28:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 19:28:06 +0000 X-ASF-Spam-Status: No, hits=-1032.1 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Mar 2010 19:28:05 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3E056234C495 for ; Tue, 16 Mar 2010 19:27:45 +0000 (UTC) Message-ID: <701405414.15451268767665252.JavaMail.jira@brutus.apache.org> Date: Tue, 16 Mar 2010 19:27:45 +0000 (UTC) From: "Mark Gellings (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQNET-243) failover causes duplicate messages In-Reply-To: <1314444497.14491268674425157.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQNET-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58276#action_58276 ] Mark Gellings commented on AMQNET-243: -------------------------------------- Problem is we need it to not happen at all. When processing idempotent messages they cannot be processed twice. So I don't think duplicating the java code would fix this. > failover causes duplicate messages > ---------------------------------- > > Key: AMQNET-243 > URL: https://issues.apache.org/activemq/browse/AMQNET-243 > Project: ActiveMQ .Net > Issue Type: Bug > Components: NMS > Affects Versions: 1.1.0 > Reporter: Mark Gellings > Assignee: Jim Gomes > > Reference https://issues.apache.org/activemq/browse/AMQ-2627 for specifics on problem. > Attached to that issue is a zip file which is password protected with password "fridaytest". > We're using ActiveMQ v5.2, jdbc master/slave MSSQL 2008. Attached is an NMS v1.2 RC4 consumer with a transacted session as well as activemq.xml. > To replicate: > 1) Work through the console prompts and produce 50 msgs. > 2) Restart console and start consuming those 50 msgs. > 3) In the middle of the consumer processing, restart broker > 4) The last message consumer was processing will be resent and not marked as redelivered. (this is the idempotent msg problem. Ex. - instead of $500 getting deposited into your account, $1000 does) > 5) Then NMS blows up which seems like a different problem? > From what I understand this shouldn't be the case if you use a transacted session, however the attached console app can prove it is a problem. > Bottomline--I thought this was why the camel idempotent consumer pattern [1] existed which can be leveraged by java clients. > [1] http://fusesource.com/docs/router/1.6/eip/MsgEnd-Idempotent.html > Regards, > Mark -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.