Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 43742 invoked from network); 12 May 2009 09:29:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 May 2009 09:29:12 -0000 Received: (qmail 7312 invoked by uid 500); 12 May 2009 09:29:12 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 7264 invoked by uid 500); 12 May 2009 09:29:12 -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 7254 invoked by uid 500); 12 May 2009 09:29:12 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 7251 invoked by uid 99); 12 May 2009 09:29:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 09:29:12 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2009 09:29:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8EDCF234C004 for ; Tue, 12 May 2009 02:28:50 -0700 (PDT) Message-ID: <131354379.1242120530579.JavaMail.jira@brutus> Date: Tue, 12 May 2009 02:28:50 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-1606) Java RouteBuilder with blocks seems to not work correctly with end() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org Java RouteBuilder with blocks seems to not work correctly with end() -------------------------------------------------------------------- Key: CAMEL-1606 URL: https://issues.apache.org/activemq/browse/CAMEL-1606 Project: Apache Camel Issue Type: Bug Components: camel-core Affects Versions: 2.0-M1, 1.6.0 Reporter: Claus Ibsen Assignee: Claus Ibsen Fix For: 2.0.0 Working on the new DSL for onComplete, onFailure callbacks for Exchange when its done. The route below is to define a subroute (the block with sycnhronize). {code} from("direct:start") .synchronize() .to("mock:before") .process(complete) .to("mock:after") .end() .transform(constant("Bye World")) .to("mock:result"); {code} So the otuer route should be: from -> sync -> transform -> mock:result and sync sub route should be: sync -> mock:before -> process -> mock:after But with the current codebase the end() is not handling the block correctly. It ends with the outer route being incl. the sub route: from -> sync -> mock:before -> process -> mock:after -> transform -> mock:result Spring DSL does not have this issue as it uses XML tags to indicate sub routes and where they start/end -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.