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 9810CD330 for ; Tue, 11 Sep 2012 09:25:03 +0000 (UTC) Received: (qmail 35093 invoked by uid 500); 11 Sep 2012 09:25:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 34855 invoked by uid 500); 11 Sep 2012 09:25:02 -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 34840 invoked by uid 99); 11 Sep 2012 09:25:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2012 09:25:02 +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 (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2012 09:24:58 +0000 Received: by lbbgm13 with SMTP id gm13so279034lbb.32 for ; Tue, 11 Sep 2012 02:24:36 -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=MIo0Zr5Ja57HElgK+dvDZ8XdIXMrb/IlcR5RY8VFpaw=; b=V+UBkMaJjdMUu6vPdgR3CTWfWld3WMZhji0If4v6PZ4lbUMv40gBI8mtMwQ6SK/nOd PdcDZdZZaod8ON0voiMJHNAxVcd6YEj0ZNqtMW7Rv/22N2iZhXVRiq8yyPJrWZuZiK68 Zxg+DigIGwWDmgJdsQSw4JsZDUbnOR8x62QB/P3TgH3m/Tb3n4dggaoEr1Z0zZ77RMNk ItH1l2vcPh4Rqm8L1EhWx4YGhlxnsCvfydEfJ0hBnlkHwaabFicv4tRYTqCHH6Qvt+Fq CmdoFMcHU4PcP5UaWXJCiwYsWV/uwToOA0KzUOtbhGPyz6WNDwT0B+TWoRSMDAN3O4Yx kwfQ== Received: by 10.152.124.180 with SMTP id mj20mr15180820lab.43.1347355476470; Tue, 11 Sep 2012 02:24:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.7.230 with HTTP; Tue, 11 Sep 2012 02:24:16 -0700 (PDT) In-Reply-To: <1347335044151-5719074.post@n5.nabble.com> References: <1347271725261-5719019.post@n5.nabble.com> <1347335044151-5719074.post@n5.nabble.com> From: Claus Ibsen Date: Tue, 11 Sep 2012 11:24:16 +0200 Message-ID: Subject: Re: Routes controlling + thread dsl To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Sep 11, 2012 at 5:44 AM, Nafees wrote: > Hello Claus, > > I might not be clear in presenting my problem, I have concurrency for the > second route. > > ROUTE_LOCAL : > fileUrl - file:///home/user/domediation > > from(fileUrl).noAutoStartup().routeId(localRouteName) > .threads() > .bean(processManager) > .bean(endRoute,localMethod).stop() > .setExecutorService(service); > > If we are trying to suspend this route , let the threads complete processing > current file. But, they should not pick up next files. How this can be > accomplished. > Just stop the route using the API, it will stop the route graceful. http://camel.apache.org/graceful-shutdown.html You can assign an id to the route using .routeId("myCoolRoute"). And then stop the route using its id. There is API on CamelContext. Or from JMX etc. > Awaiting ur reply > > Nafees > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Routes-controlling-thread-dsl-tp5719019p5719074.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen