Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 84607 invoked from network); 16 Oct 2010 19:32:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Oct 2010 19:32:15 -0000 Received: (qmail 86549 invoked by uid 500); 16 Oct 2010 19:32:15 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 86522 invoked by uid 500); 16 Oct 2010 19:32:15 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 86514 invoked by uid 99); 16 Oct 2010 19:32:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Oct 2010 19:32:15 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of seijoed@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-iw0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Oct 2010 19:32:09 +0000 Received: by iwn34 with SMTP id 34so2279588iwn.32 for ; Sat, 16 Oct 2010 12:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=DQrvt3mq5MLiCMPFLBterLZ+wra0eXdE9KdHzlwookE=; b=wy1hDdgtfKRNmOTCR3CIiaV/Z+YJyzzXaA/9CwgQJ+nqEf89P4MEb+MWX6hDfr6iKZ /1Q9JdC2J1bmn+q2FfzO+77BPTKBzDfzrd2Txvd2Ef9VQ2+WUctmVXFXKZIqtZLM6SyK zmFcknTM3oYs+088ODywNk/aRwTb1loPEUp6E= 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=o0d4AI8sEX8wzJ4oIrVDzoLjIE82fn9o1F0i1QGUOQtJ8imf2R5shld3bFzQy74sQI 3fZpEXenWdPheCbJThcvjSCuy/2MRXqJM4L+IdDKzBh+DRJiJqawb3NHkXs/I1kO6rDC A13krrLoNUby3zmU+to17/qt2I8imkwLE55OE= Received: by 10.231.160.205 with SMTP id o13mr1904532ibx.15.1287257505751; Sat, 16 Oct 2010 12:31:45 -0700 (PDT) Received: from i.s.shopwiki.com.cdngc.net (71-208-45-127.hlrn.qwest.net [71.208.45.127]) by mx.google.com with ESMTPS id gy41sm15087767ibb.17.2010.10.16.12.31.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 16 Oct 2010 12:31:44 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: [jira] Commented: (CAMEL-1823) doCatch(Predicate) From: Johan Edstrom In-Reply-To: <20879940.58701287235960802.JavaMail.jira@thor> Date: Sat, 16 Oct 2010 13:31:42 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <61D15EFB-8238-401E-801D-ECFE25A91EBF@gmail.com> References: <20879940.58701287235960802.JavaMail.jira@thor> To: dev@camel.apache.org X-Mailer: Apple Mail (2.1081) I really don't have any opinion - I agree it is a little wacky :) I saw the Jira and thought, oh - that looks fun.=20 It is just a few lines of code. /je On Oct 16, 2010, at 7:32 AM, Claus Ibsen (JIRA) wrote: >=20 > [ = https://issues.apache.org/activemq/browse/CAMEL-1823?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D6262= 8#action_62628 ]=20 >=20 > Claus Ibsen commented on CAMEL-1823: > ------------------------------------ >=20 > I think its a bit too wacky idea.=20 >=20 > doTry and doCatch is about exceptions as you would resemble this to = try .. catch in Java. >=20 > Maybe we shouldn't try to make the framework more complicated that it = is? > I think we should mark this as wont fix. >=20 > And if in the future there is a compelling reason to pickup this again = we can do this. >=20 > Any thoughts? >=20 >> doCatch(Predicate) >> ------------------ >>=20 >> Key: CAMEL-1823 >> URL: = https://issues.apache.org/activemq/browse/CAMEL-1823 >> Project: Apache Camel >> Issue Type: New Feature >> Components: camel-core >> Reporter: Claus Ibsen >> Assignee: Hadrian Zbarcea >> Fix For: Future >>=20 >> Attachments: = 0001-https-issues.apache.org-activemq-browse-CAMEL-1823.patch >>=20 >>=20 >> As someone suggested on the user forum. >> Letting {{doCatch}} be able to catch and react to a predicate as = well. Currently it *only* reacts when an exception has been thrown. >> Letting it react to predicates as well will really set it high over = its Java counter part. >> {code} >> doTry() >> .beanRef("myBean") >> .to("activemq:queue:foo") >> .doCatch(body().isNull()) >> .to("log:foo?level=3DWARN") >> .end() >> {code} >=20 > --=20 > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. >=20 Johan Edstrom joed@opennms.org They that can give up essential liberty to purchase a little temporary = safety, deserve neither liberty nor safety. Benjamin Franklin, Historical Review of Pennsylvania, 1759