Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C2C0A10FBB for ; Mon, 3 Mar 2014 07:03:37 +0000 (UTC) Received: (qmail 29270 invoked by uid 500); 3 Mar 2014 07:03:35 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 28312 invoked by uid 500); 3 Mar 2014 07:03:34 -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 25678 invoked by uid 99); 3 Mar 2014 07:03:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2014 07:03:29 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of yifeng.guo@citi.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2014 07:03:23 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WKMtw-0007AX-E5 for users@camel.apache.org; Sun, 02 Mar 2014 23:03:00 -0800 Date: Sun, 2 Mar 2014 23:03:00 -0800 (PST) From: simafengyun To: users@camel.apache.org Message-ID: <1393830180425-5748228.post@n5.nabble.com> Subject: how to redelivery message in the below case MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, somebody could tell me how to redelivery message in the below case. I have a client bundle deployed in karaf(used camel 2.10.4 and karaf 2.3.3). there is a camel route in the client bundle. Code as below: <--IdOsgiTestProcessor just used to created message body--> <--processorService is a osgi service implemented in a service bundle--> <--logProcessor is just used to log the returned value from service bundle--> Normally if the processorService is in processing, the processorService will returen value 0. When use restart the processorService in another bundle, sometimes the processorService will returns null. So I checked the returned value in the logProcessor because I can't check it in the processorService which is an OSGi service. If returns null ,throws exception. But the errorhandle's redelivery policy only redelivery message in the log processor. But I hope it redelivery message in the processorService How to do it? -- View this message in context: http://camel.465427.n5.nabble.com/how-to-redelivery-message-in-the-below-case-tp5748228.html Sent from the Camel - Users mailing list archive at Nabble.com.