Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 2762 invoked from network); 16 Oct 2010 20:57:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Oct 2010 20:57:02 -0000 Received: (qmail 44622 invoked by uid 500); 16 Oct 2010 20:57:01 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 44547 invoked by uid 500); 16 Oct 2010 20:57:01 -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 44539 invoked by uid 500); 16 Oct 2010 20:57:01 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 44536 invoked by uid 99); 16 Oct 2010 20:57:01 -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 20:57:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Oct 2010 20:57:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9GKue3g027739 for ; Sat, 16 Oct 2010 20:56:41 GMT Message-ID: <15114137.58761287262600804.JavaMail.jira@thor> Date: Sat, 16 Oct 2010 16:56:40 -0400 (EDT) From: "Hadrian Zbarcea (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1823) doCatch(Predicate) In-Reply-To: <67675786.1247330854933.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/CAMEL-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62630#action_62630 ] Hadrian Zbarcea commented on CAMEL-1823: ---------------------------------------- Not sure if it's that wacky, yet I don't strong opinions either way. Let me finish the 2.5.0 release and add more thoughts here, then we can decide. @Claus, you created the jira, who asked for this feature? > doCatch(Predicate) > ------------------ > > 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 > > Attachments: 0001-https-issues.apache.org-activemq-browse-CAMEL-1823.patch > > > 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=WARN") > .end() > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.