Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 39264 invoked from network); 14 Apr 2011 06:48:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2011 06:48:53 -0000 Received: (qmail 49703 invoked by uid 500); 14 Apr 2011 06:48:53 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 49678 invoked by uid 500); 14 Apr 2011 06:48:53 -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 49669 invoked by uid 99); 14 Apr 2011 06:48:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 06:48:52 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of hyjshanghai@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Apr 2011 06:48:45 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1QAGLo-0001GR-3Q for users@camel.apache.org; Wed, 13 Apr 2011 23:48:24 -0700 Date: Wed, 13 Apr 2011 23:48:24 -0700 (PDT) From: hyjshanghai To: users@camel.apache.org Message-ID: <1302763704091-4302302.post@n5.nabble.com> Subject: What's the Difference between handled(false) and continued(true) (and more...)? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org With regard to the "onException" Spring DSL, here are my questions based th= e following 5 definitions (Example A-E). Note that I replaced < and > with ( and ) 1. What's the difference between handled(false) and continued(true)? (Example C v.s. D) According to my experience, only continued(true) will really continue routing as if the exception has not happend. handled(false) will break out routing, just like what handled(true) does. I= s this normal? 2. Similar to question 1, what's the difference between handled(true) and continued(false)? (Example B v.s. E) Should continued(false) also break out the normal routing on exception, jus= t like what handled(true) does? 3. A famous book on Camel says "OnException doesn=E2=80=99t handle exceptio= ns by default".=20 However, Example A also breaks out normal routing on Exception, just like what Example B does by my experience. Is my experience conflicting with the Book's assertion that exception is no= t handled by default? Example A: (camel:onException) (camel:exception)java.lang.ArithmeticException(/camel:exception= ) (camel:process ref=3D"arithmeticExceptionProcessor" /) (/camel:onException) Example B: (camel:onException) (camel:exception)java.lang.ArithmeticException(/camel:exception= ) =20 (camel:handled)(camel:constant)true(/camel:constant)(/camel:handled) (camel:process ref=3D"arithmeticExceptionProcessor" /) (/camel:onException) =09 =20 Example C: (camel:onException) (camel:exception)java.lang.ArithmeticException(/camel:exception= ) =20 (camel:handled)(camel:constant)false(/camel:constant)(/camel:handled) (camel:process ref=3D"arithmeticExceptionProcessor" /) (/camel:onException) Example D: (camel:onException) (camel:exception)java.lang.ArithmeticException(/camel:exception= ) =20 (camel:continued)(camel:constant)true(/camel:constant)(/camel:continued) (camel:process ref=3D"arithmeticExceptionProcessor" /) (/camel:onException) =09 =20 Example E: (camel:onException) (camel:exception)java.lang.ArithmeticException(/camel:exception= ) =20 (camel:continued)(camel:constant)false(/camel:constant)(/camel:continued) (camel:process ref=3D"arithmeticExceptionProcessor" /) (/camel:onException) =09 =20 -- View this message in context: http://camel.465427.n5.nabble.com/What-s-the-= Difference-between-handled-false-and-continued-true-and-more-tp4302302p4302= 302.html Sent from the Camel - Users mailing list archive at Nabble.com.