Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 552AC59CC for ; Tue, 10 May 2011 15:57:39 +0000 (UTC) Received: (qmail 39565 invoked by uid 500); 10 May 2011 15:57:38 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 39534 invoked by uid 500); 10 May 2011 15:57:38 -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 39497 invoked by uid 99); 10 May 2011 15:57:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2011 15:57:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of seijoed@gmail.com designates 209.85.213.43 as permitted sender) Received: from [209.85.213.43] (HELO mail-yw0-f43.google.com) (209.85.213.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 May 2011 15:57:29 +0000 Received: by ywa6 with SMTP id 6so2876319ywa.2 for ; Tue, 10 May 2011 08:57:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=S2LeOF3/17t/YWR38ZlSXccMCe/l2BfPuLEucsTqkCE=; b=PmnxR6LfFfDvsreR98Q2Q7mmfnC3LmgWPKu4gB1TPvw6NU/PX5CqEVYvyXAdD50bfM N1C2E5rXwJxJmwU7I8HpxRf7m41sNBmQsv06ToeKyqRueg96Bq6Pwy6UYOBa+jRA6UZJ FO0CxdZIbicOACEJnknJJIDxoUIj7PDgsIxFo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=AnEZx+q+i8vxzBwoarl8YqeJ7PR7YC5UWcfVi9jER2QO6CfgU68OzBghYIa8Gr2CJ9 vMLJe95ecS9NaVC4ljEt6tawOBolSp/RuQCyLQjwrJsahveg17YT8lUQJpo+z/6qhoY5 3NCUxJ8TBtA56M/ZrRXYwtLcc7NA9e0hT1akA= Received: by 10.236.116.131 with SMTP id g3mr5321455yhh.464.1305043028238; Tue, 10 May 2011 08:57:08 -0700 (PDT) Received: from [10.60.60.8] ([4.53.147.42]) by mx.google.com with ESMTPS id q64sm3181318yhm.61.2011.05.10.08.57.03 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 10 May 2011 08:57:06 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: sync between two independent brokers From: Johan Edstrom In-Reply-To: Date: Tue, 10 May 2011 09:57:02 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <24A44A06-81FB-44A9-A00E-301CB0BC7F42@gmail.com> References: To: users@activemq.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org If you use camel, have a DataBase, you can always apply an = idempotentrepository. On May 10, 2011, at 5:52 AM, Christoph Burmeister wrote: > Hi, >=20 > I have two brokers with nearly the same configuration. They don't > share a database nor have access to the same filesystem. They will get > identical messages (Message-reception is not reliable due to > network-issues), which are received and processed by camel routes > inside each broker. The result is spit out to the same database (just > for the processed-messages). >=20 > Now here's my question: Is there any way to suppress duplicate > messages in the database? Is there a kind of communication between the > brokers, or does anyone have a pattern/best practice for this > "distributed-independent-broker-architecture"? I know, that there is a > master-slave-concept, but this isn't suitable as it is, because after > master's death, it requires manual input to sync both instances. A > more indipendent approach would be much nicer. >=20 > all ideas are welcome, thanks in advance, > christoph