Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 1570310E3F for ; Wed, 7 Aug 2013 01:47:27 +0000 (UTC) Received: (qmail 50782 invoked by uid 500); 7 Aug 2013 01:47:26 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 50711 invoked by uid 500); 7 Aug 2013 01:47:26 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 50703 invoked by uid 99); 7 Aug 2013 01:47:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 01:47:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of saltnlight5@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 01:47:21 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V6spk-0003rF-6t for users@camel.apache.org; Tue, 06 Aug 2013 18:46:40 -0700 Date: Tue, 6 Aug 2013 18:46:40 -0700 (PDT) From: saltnlight5 To: users@camel.apache.org Message-ID: <1375840000197-5736874.post@n5.nabble.com> In-Reply-To: <1375788455412-5736837.post@n5.nabble.com> References: <1375788455412-5736837.post@n5.nabble.com> Subject: Re: Flatpack and aggregation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello Tom, I think you can try flatpack with one of the idempotent consumer (http://camel.apache.org/idempotent-consumer.html) to eliminate duplicated messages. For example, maybe something like this: from("file:inbox") .to("flatpack:fixed:yourdata.pzmap.xml") .filter(header("action_id")) .idempotentConsumer(header("organisation_id"), MemoryIdempotentRepository.memoryIdempotentRepository(200)) Also alternative to flatpack, you may also checkout Camel bindy: http://camel.apache.org/bindy.html to parse fixed length records. Have fun, Zemian -- View this message in context: http://camel.465427.n5.nabble.com/Flatpack-and-aggregation-tp5736837p5736874.html Sent from the Camel - Users mailing list archive at Nabble.com.