Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 74637 invoked from network); 1 Dec 2008 10:45:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2008 10:45:01 -0000 Received: (qmail 25236 invoked by uid 500); 1 Dec 2008 10:45:13 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 25206 invoked by uid 500); 1 Dec 2008 10:45:12 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 25191 invoked by uid 99); 1 Dec 2008 10:45:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 02:45:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.strachan@gmail.com designates 74.125.44.154 as permitted sender) Received: from [74.125.44.154] (HELO yx-out-1718.google.com) (74.125.44.154) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2008 10:43:42 +0000 Received: by yx-out-1718.google.com with SMTP id 3so793347yxi.86 for ; Mon, 01 Dec 2008 02:44:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=egKfc/Scp5CXEVkagYGPiO0P8WmBmaDIbO1yAtuda4c=; b=wQRTuYuuXE247TVLMuXSIHVCIL3hdP+DbMYF2B/wSlu/eMMlhsIk3kR+FsQ17DldT5 AKL+gggRuBQ513fH9cPBuQUoMzA34ZtpoaM3mihKfBxyt5qgBoWw4uvpzGh/pOQgyhOo 1eUcOnFB5BVM1YmGDZRYjArFCMgiYepSqowEo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=cEU+EpwAw716j7np2NWleEhP4ZAIw/MiTkQbT8XA+5DA1Wt3/GTygCD4gO/9xQEaMa 3aK114rQUPKmMhSJyNrp1mGIzYu0O3zlbCXyfzQYp8RDPbTd/Khk3/beI+gU/JWK9eaB +KpR3jn1YxR1eA8IoQfm4GxTez49aEeroYsfs= Received: by 10.151.107.8 with SMTP id j8mr13516362ybm.119.1228128268814; Mon, 01 Dec 2008 02:44:28 -0800 (PST) Received: by 10.151.38.2 with HTTP; Mon, 1 Dec 2008 02:44:28 -0800 (PST) Message-ID: Date: Mon, 1 Dec 2008 10:44:28 +0000 From: "James Strachan" To: camel-dev@activemq.apache.org Subject: Re: Deprecation of file consumer timestamp In-Reply-To: <5380c69c0811290804i7292efbdi37c06cdd11021a5b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2748945d0811181057w760b0be7g4b23b372394b90b4@mail.gmail.com> <49231A78.8070802@skynet.be> <2748945d0811181904n2c9f5d37ufee7943d4f499495@mail.gmail.com> <5380c69c0811190135o509a41ale3b0ff0c5fd149ee@mail.gmail.com> <5380c69c0811190139i49a494cbh4f65df819d026a3a@mail.gmail.com> <4923ED1A.1000301@skynet.be> <5380c69c0811290804i7292efbdi37c06cdd11021a5b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 2008/11/29 Claus Ibsen : > Hi > > I am reworking the file component as the code needs to be polished to > be ready for new feature requests by end users. > > Having my fingers on the keyboard and reworking the code I do think we > should consider letting the idempotent consumer EIP pattern having a > first class interface for consumers to implement to support idempotent > right out-of-the-box. This is convenient for both the file and ftp > consumers to avoid re-consuming already processed files. > > Then we could allow very easy URI configuration for the file consumer > to enable the idempotent > from("file://inbox?idempotent=true").to("bean:processOrder"); Great idea! > So I am proposing to either > a) add a new interface in org.apache.camel to cater for this > b) move the existing interface MessageIdRepository to org.apache.camel > c) option b but renaming the interface to a better name, IdempotentRepository > > Using the existing MessageIdRepository allows us to leverage existing > implementations such as the JpaMessageIdRepository so we can support a > persistent solution right out-of-the-box. Sounds good - how about IdempotentRepository being in the camel.spi package? -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/