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 7623A10F0D for ; Fri, 23 May 2014 09:19:48 +0000 (UTC) Received: (qmail 37245 invoked by uid 500); 23 May 2014 09:19:48 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 37195 invoked by uid 500); 23 May 2014 09:19:48 -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 37186 invoked by uid 99); 23 May 2014 09:19:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 09:19:48 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.213.176 as permitted sender) Received: from [209.85.213.176] (HELO mail-ig0-f176.google.com) (209.85.213.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 09:19:46 +0000 Received: by mail-ig0-f176.google.com with SMTP id hl10so431354igb.15 for ; Fri, 23 May 2014 02:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=AfWxp2a5QkoiAtSnJXGzMiCri22CcZ1kE2BItOkrQiE=; b=j7hDKTnanUJGPUbfDJdnv0f8MlY2mXenloMeoNOQnJLldlrzDjsCHq67TSmExO2KSF +LZ3ofNvaRqO6Ykt5FXaWQJxN3Zcg7vLjD3qTq8sHbSMcALePWu7y1xwt6pTqOymfGsn XLjsaPaY9Lfi2N9YykZxIpG514yY7TKC+VqjWLbvjRv61EFrQ8CwcZOqhQjCIyu+2zuc 7u3OuEmyDx7fmNiEQff47abZQARm3Oov4GFyxQTDRSpnEMDXBjr9GSpfujQxXwqup0p3 sSWB60XIm87cTVARnhXVeAd61QjHV0x2m1EA4kIoccefEQqnQp36IfQscvAs8VuU2Ire HbjA== X-Received: by 10.50.26.3 with SMTP id h3mr2559610igg.31.1400836762250; Fri, 23 May 2014 02:19:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.93.67 with HTTP; Fri, 23 May 2014 02:19:01 -0700 (PDT) In-Reply-To: <1400836153149-5751510.post@n5.nabble.com> References: <1400836153149-5751510.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 23 May 2014 11:19:01 +0200 Message-ID: Subject: Re: Camel gracefull shutdown with exec: To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org You can use a higher graceful timeout if you must wait for the exec to complete and process its message. http://camel.apache.org/graceful-shutdown.html Though the default timeout is 300 seconds, so your exec must take a long time. Mind that from unit tests the timeout is set to 10 sec instead. On Fri, May 23, 2014 at 11:09 AM, Jey350 wrote: > Hello, > > I have an issue with a gracefull shutdown of a route containing an exec > command, because the route is stopped after the exe command and what follows > is not processed. > > With a sample it will be esasier to undersand: > > > > > > > If the shutdown command is launched while process1, the exec will run but > not process2. > > I can precise the timeout is not reached, with a to:direct trick it's the > same, and I'm using Camel 2.10. > > Any idea to let the route finish while shutdown ? > > Thanks. > > > > > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel-gracefull-shutdown-with-exec-tp5751510.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/