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 54D76DBCC for ; Fri, 19 Oct 2012 07:25:08 +0000 (UTC) Received: (qmail 55692 invoked by uid 500); 19 Oct 2012 07:25:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 55449 invoked by uid 500); 19 Oct 2012 07:25:03 -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 55382 invoked by uid 99); 19 Oct 2012 07:25:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2012 07:25:01 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.26 is neither permitted nor denied by domain of blackorangebox@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2012 07:24:55 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TP6wd-0002QQ-9s for users@camel.apache.org; Fri, 19 Oct 2012 00:24:35 -0700 Date: Fri, 19 Oct 2012 00:24:35 -0700 (PDT) From: snowindy To: users@camel.apache.org Message-ID: <1350631475297-5721277.post@n5.nabble.com> In-Reply-To: References: <1350571199607-5721248.post@n5.nabble.com> Subject: Re: Camel application design question MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Like I said, /ProcessError is simply a utility class containing both exception caught in a certain stage, and a Stage identifier. Stage id will be used afterwards to identify stage with no pain with string parsing etc./ In general, I try to utilize Camel to build a flexible request-reply route, so that more steps can be added after with no other changes. Certainly, all this can easily be implemented in a 'strategy' Java-class, which chains actions one after another. This is why I am asking about the app design. How would you implement this part? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-application-design-question-tp5721248p5721277.html Sent from the Camel - Users mailing list archive at Nabble.com.