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 39FB910199 for ; Thu, 28 Nov 2013 12:56:34 +0000 (UTC) Received: (qmail 82198 invoked by uid 500); 28 Nov 2013 12:56:32 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 81900 invoked by uid 500); 28 Nov 2013 12:56:32 -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 81889 invoked by uid 99); 28 Nov 2013 12:56:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Nov 2013 12:56:31 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [212.227.17.10] (HELO moutng.kundenserver.de) (212.227.17.10) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Nov 2013 12:56:26 +0000 Received: from winxedgeeu03.exchange.xchg (winxedgeeu03.schlund.de [172.23.1.13]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0MOHPE-1VgUox3h6C-005Vaz; Thu, 28 Nov 2013 13:55:55 +0100 Received: from winxhubeu06.exchange.xchg (172.23.1.148) by winxedgeeu03.exchange.xchg (172.23.1.13) with Microsoft SMTP Server (TLS) id 8.3.279.5; Thu, 28 Nov 2013 13:52:08 +0100 Received: from winxbede40.exchange.xchg ([172.23.1.204]) by winxhubeu06.exchange.xchg ([172.23.1.148]) with mapi; Thu, 28 Nov 2013 13:51:53 +0100 From: "Walzer, Thomas" To: "users@camel.apache.org" Date: Thu, 28 Nov 2013 13:51:51 +0100 Subject: Re: Execute a spedific route from unix cron Thread-Topic: Execute a spedific route from unix cron Thread-Index: Ac7sOJv6ke310T9FS5SYUvy4RokAvQ== Message-ID: References: <1385635975870-5744010.post@n5.nabble.com> In-Reply-To: <1385635975870-5744010.post@n5.nabble.com> Accept-Language: de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE x-provags-id: V02::JGiMUO4rB1AaCS0xJpO0NzFLWrmeaV4h30QJI3jPj3PDH NeusyMK0VFwulow5dvrNr7KLeSbRlLfKvn1eHTrewtzw50bMPv 1EqcIQEQ6jjXEmKBU6l5paUkzLwsD1ZhBainA1QNQ1TsZAmwg0 95oSRtCUTPCCtIN40SeMEp91gTbiwOth9k1MoXjEypqkJzt Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi, how about turning the solution around and starting individual routes using = quartz? If you want to stay on your path: let cron write individual files and use "= from uri=3Dfile:" in the routes to trigger your routes. Not extremely elega= nt though...=20 Cheers, Thomas. Am 28.11.2013 um 11:52 schrieb richie.riviere@gmail.com: > Hi All, >=20 > I have written a camel application that I would like to execute from the > crontab. My application has a main class which looks like ... >=20 > public class Main extends org.apache.camel.spring.Main { >=20 > public static void main(String... args) throws Exception { > new Main().run(args); > } > } >=20 > And it has several routes. So it's easy enough to execute camel and tell = it > to run all the routes but how would I tell it to only run a specific rout= e > from the unix cron or just any other unix command line for that matter? >=20 > thanks >=20 >=20 >=20 > -- > View this message in context: http://camel.465427.n5.nabble.com/Execute-a= -spedific-route-from-unix-cron-tp5744010.html > Sent from the Camel - Users mailing list archive at Nabble.com.