Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 24499 invoked from network); 19 Nov 2009 19:41:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Nov 2009 19:41:03 -0000 Received: (qmail 88087 invoked by uid 500); 19 Nov 2009 19:41:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 88049 invoked by uid 500); 19 Nov 2009 19:41: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 88011 invoked by uid 99); 19 Nov 2009 19:41:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2009 19:41:03 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Nov 2009 19:40:53 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NBCro-0001jJ-WE for users@camel.apache.org; Thu, 19 Nov 2009 11:40:33 -0800 Message-ID: <26421454.post@talk.nabble.com> Date: Thu, 19 Nov 2009 11:40:32 -0800 (PST) From: trivedi kumar b To: users@camel.apache.org Subject: Intended rollback on the exchange - error on transacted routes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: Trivedi.Bodlapati@ge.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am using Camel-2.1-SNAPSHOT jars, my router deals with transactions and looks like below: SpringTransactionPolicy required = lookup('REG_PROPAGATION_REQUIRED', SpringTransactionPolicy.class); errorHandler(transactionErrorHandler(required)); from(SERVICE_XDSBREG_END_POINT) .onException(Exception.class) .handled(true) .processRef('processError') .rollback() .end() .processRef('handleRequest') .to("direct:throwException"); //this line throws an exception. As per the Camel 2.0, the exception should be caught and handled at onException() block. The code is working fine that during exceptions, it is invoking 'processError' in which I am setting custom error response in the "out" body. However the client is not getting that, instead getting the below error: org.apache.camel.RollbackExchangeException: Intended rollback on the exchange: Exchange[Message: org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rs.RegistryResponseType@14d9794 Could someone help me on this? thanks, Trivedi -- View this message in context: http://old.nabble.com/Intended-rollback-on-the-exchange---error-on-transacted-routes-tp26421454p26421454.html Sent from the Camel - Users mailing list archive at Nabble.com.