Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 15109 invoked from network); 11 Jul 2008 05:58:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2008 05:58:52 -0000 Received: (qmail 40710 invoked by uid 500); 11 Jul 2008 05:58:52 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 40692 invoked by uid 500); 11 Jul 2008 05:58:52 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 40681 invoked by uid 99); 11 Jul 2008 05:58:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 22:58:52 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.69.129.178] (HELO exsmtp02.exserver.dk) (195.69.129.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2008 05:57:58 +0000 Received: from EXVS04.exserver.dk ([10.10.10.85]) by exsmtp02.exserver.dk with Microsoft SMTPSVC(6.0.3790.1830); Fri, 11 Jul 2008 07:56:29 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: How to invoke local error handler? Date: Fri, 11 Jul 2008 07:56:51 +0200 Message-ID: <4C1FB9C00D24A140906239533638C4D204BD850E@EXVS04.exserver.dk> In-Reply-To: <18397172.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to invoke local error handler? Thread-Index: AcjjGWHAd5uUzue6S2yh6AZbMEv+8gAAUTOw From: "Claus Ibsen" To: X-OriginalArrivalTime: 11 Jul 2008 05:56:29.0096 (UTC) FILETIME=[DCABCA80:01C8E31A] X-Virus-Checked: Checked by ClamAV on apache.org Hi You should have the exception(java.net.ConnectException.class) and the = DLC before the = to("("jbi:service:http://servicemix.in2m.com/samples/http/MyProviderServi= ce?mep=3Din-out"). It must be registered within the route before the = failure happends. so you need something like this: from(xxx) exception(NoConnection) to(yyy) And *not*: from(xxx) to(yyy) exception(NoConnection) Med venlig hilsen =20 Claus Ibsen ...................................... Silverbullet Skovsg=E5rdsv=E6nget 21 8362 H=F8rning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: pratibhaG [mailto:pratibha.ghogale@in2m.com]=20 Sent: 11. juli 2008 07:47 To: camel-user@activemq.apache.org Subject: How to invoke local error handler? I tried configuration like this: exception(java.lang.Throwable.class) =20 .to("jbi:service:http://servicemix.in2m.com/samples/http/bean3Service?mep= =3Din-out") =20 .to("jbi:service:http://servicemix.in2m.com/samples/http/bean2Service?mep= =3Din-out"); =20 from("jbi:service:http://servicemix.in2m.com/samples/http/httpConsumer") .to("validator:updatepassword.xsd") =20 =20 .to("jbi:service:http://servicemix.in2m.com/samples/http/jmsProviderServi= ce?mep=3Din-only") =20 .to("jbi:service:http://servicemix.in2m.com/samples/http/bean2Service"); =09 = from("jbi:service:http://servicemix.in2m.com/samples/http/jmsConsumer") .errorHandler( =09 deadLetterChannel("jbi:service:http://servicemix.in2m.com/samples/http/be= an8Service?mep=3Din-out") .maximumRedeliveries(2) .initialRedeliveryDelay(15000) .useExponentialBackOff() .backOffMultiplier(2.0)) =20 .to("jbi:service:http://servicemix.in2m.com/samples/http/MyProviderServic= e?mep=3Din-out") .exception(java.net.ConnectException.class) =20 .maximumRedeliveries(2).useExponentialBackOff().initialRedeliveryDelay(30= 000).backOffMultiplier(2.0) =20 .to("jbi:service:http://servicemix.in2m.com/samples/http/bean1Service?mep= =3Din-out"); I want that when my "http://servicemix.in2m.com/samples/http/MyProviderService" throws connectionexception it should be sent to "http://servicemix.in2m.com/samples/http/bean1Service". But it sending = it to "http://servicemix.in2m.com/samples/http/bean3Service".=20 why it first goes to global handler even when it has local error = handler? Am I wrong somewhere? How can I explicitly say that use local error handler first? -pratibha --=20 View this message in context: = http://www.nabble.com/How-to-invoke-local-error-handler--tp18397172s22882= p18397172.html Sent from the Camel - Users mailing list archive at Nabble.com.