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 2CA3DE750 for ; Wed, 16 Jan 2013 23:47:43 +0000 (UTC) Received: (qmail 13270 invoked by uid 500); 16 Jan 2013 23:47:42 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 13222 invoked by uid 500); 16 Jan 2013 23:47:42 -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 13211 invoked by uid 99); 16 Jan 2013 23:47:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2013 23:47:42 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.mueller@gmail.com designates 209.85.219.53 as permitted sender) Received: from [209.85.219.53] (HELO mail-oa0-f53.google.com) (209.85.219.53) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2013 23:47:36 +0000 Received: by mail-oa0-f53.google.com with SMTP id j6so2057226oag.26 for ; Wed, 16 Jan 2013 15:47:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=82zi2Ns0N0nwFiVs921udaEXY1so7SV214XmoCdoRls=; b=c1tfP5FWCmhJKBzfFDPtRpcB2AxYGrFTrc03o7tDV4fU9EYBbv/sB7sGXrFe0iclTi KS7CRb5sQLK1GxCEWow3AsAmdSymmehb6mYdMXR/BLb8j7B73VgzCY39+Q5imfpBxaKZ wnjSmnIA818w1/pNpOe4g6UWW+EF3Qq2EAFrSkjCh0yWv/01SWjQaxDwSWJUZJNhiYXm tUG2/+jSvhtof8d322BeTU8tF3vTiPeTrh89OoND+ClWNo8kO8jS28/t0Ech7Gn3yOFC wTCSJ3gu2dVrZOQr51dpJjof16rSmzXfsNoJXySEMf+woEyljGperq+ZEjv1CsFPZghS CC1A== MIME-Version: 1.0 X-Received: by 10.182.162.66 with SMTP id xy2mr2356744obb.82.1358380035068; Wed, 16 Jan 2013 15:47:15 -0800 (PST) Received: by 10.182.114.103 with HTTP; Wed, 16 Jan 2013 15:47:14 -0800 (PST) Received: by 10.182.114.103 with HTTP; Wed, 16 Jan 2013 15:47:14 -0800 (PST) In-Reply-To: <1358341213355-5725641.post@n5.nabble.com> References: <1358268602079-5725581.post@n5.nabble.com> <1358341213355-5725641.post@n5.nabble.com> Date: Thu, 17 Jan 2013 00:47:14 +0100 Message-ID: Subject: Re: Concat routes From: =?ISO-8859-1?Q?Christian_M=FCller?= To: users@camel.apache.org Content-Type: multipart/alternative; boundary=e89a8f839dfb75d49804d3707f01 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f839dfb75d49804d3707f01 Content-Type: text/plain; charset=ISO-8859-1 I guess the behavior is different because the quartz component use the inOnly MEP and the servlet component use the inOut MEP. I cannot check this at present... Best, Christian Sent from a mobile device Am 16.01.2013 14:00 schrieb "klauss42" : > Hi Claus > > > What do you mean by parallel? > > The 3 routes (vm:invoiceMapping, vm:invoiceControl + vm:invoiceAccounting) > get started in parallel when the cron starts the vm:invoiceProcessing > route. > Here is some log output of a test that hopefully explains the behavior: > > Routes "called" sequentially when launched via servlet: > 2013-01-16 13:50:29,701 [INFO ][invoiceMapping] - Job 'invoiceMapping' > started > 2013-01-16 13:50:29,769 [INFO ][invoiceMapping] - Executing step: > [invoiceMappingStep] > 2013-01-16 13:50:29,781 [INFO ][invoiceMapping] - invoiceMapping started > 2013-01-16 13:50:30,781 [INFO ][invoiceMapping] - working 0 sec > 2013-01-16 13:50:31,781 [INFO ][invoiceMapping] - working 1 sec > .. > 2013-01-16 13:50:34,781 [INFO ][invoiceMapping] - invoiceMapping ended > 2013-01-16 13:50:34,809 [INFO ][invoiceMapping] - Job 'invoiceMapping' > completed > 2013-01-16 13:50:34,851 [INFO ][invoiceControl] - Job 'invoiceControl' > started > 2013-01-16 13:50:34,870 [INFO ][invoiceControl] - Executing step: > [invoiceControlStep] > 2013-01-16 13:50:34,878 [INFO ][invoiceControl] - invoiceControl started > 2013-01-16 13:50:35,879 [INFO ][invoiceControl] - working 0 sec > 2013-01-16 13:50:36,879 [INFO ][invoiceControl] - working 1 sec > ... > 2013-01-16 13:50:44,881 [INFO ][invoiceControl] - invoiceControl ended > 2013-01-16 13:50:44,919 [INFO ][invoiceControl] - Job 'invoiceControl' > completed > 2013-01-16 13:50:44,958 [INFO ][invoiceAccounting] - Job > 'invoiceAccounting' > started > 2013-01-16 13:50:44,979 [INFO ][invoiceAccounting] - Executing step: > [invoiceAccountingStep] > 2013-01-16 13:50:44,994 [INFO ][invoiceAccounting] - invoiceAccounting > started > 2013-01-16 13:50:45,995 [INFO ][invoiceAccounting] - working 0 sec > 2013-01-16 13:50:46,995 [INFO ][invoiceAccounting] - working 1 sec > ... > 2013-01-16 13:50:54,997 [INFO ][invoiceAccounting] - invoiceAccounting > ended > 2013-01-16 13:50:55,032 [INFO ][invoiceAccounting] - Job > 'invoiceAccounting' > completed > > > Routes "called" in parallel execution when launched via quartz: > 2013-01-16 11:57:33,132 [INFO ][invoiceControl] - Job 'invoiceControl' > started > 2013-01-16 11:57:33,132 [INFO ][invoiceAccounting] - Job > 'invoiceAccounting' > started > 2013-01-16 11:57:33,132 [INFO ][invoiceMapping] - Job 'invoiceMapping' > started > 2013-01-16 11:57:33,185 [INFO ][invoiceAccounting] - Executing step: > [invoiceAccountingStep] > 2013-01-16 11:57:33,221 [INFO ][invoiceAccounting] - invoiceAccounting > started > 2013-01-16 11:57:33,221 [INFO ][invoiceControl] - invoiceControl started > 2013-01-16 11:57:33,221 [INFO ][invoiceMapping] - invoiceMapping started > 2013-01-16 11:57:34,222 [INFO ][invoiceAccounting] - working 0 sec > 2013-01-16 11:57:34,223 [INFO ][invoiceControl] - working 0 sec > 2013-01-16 11:57:34,226 [INFO ][invoiceMapping] - working 0 sec > 2013-01-16 11:57:35,222 [INFO ][invoiceAccounting] - working 1 sec > 2013-01-16 11:57:35,224 [INFO ][invoiceControl] - working 1 sec > 2013-01-16 11:57:35,227 [INFO ][invoiceMapping] - working 1 sec > 2013-01-16 11:57:36,222 [INFO ][invoiceAccounting] - working 2 sec > 2013-01-16 11:57:36,224 [INFO ][invoiceControl] - working 2 sec > 2013-01-16 11:57:36,228 [INFO ][invoiceMapping] - working 2 sec > 2013-01-16 11:57:37,222 [INFO ][invoiceAccounting] - working 3 sec > 2013-01-16 11:57:37,224 [INFO ][invoiceControl] - working 3 sec > ... > > In this log output you can see that all 3 routes get fired at the same time > instead of being executed one after the other. I do not understand why > Camel > behaves different if triggered by Quartz. The intended behavior is the > sequential execution of the routes. > > > > How frequent have you set the cron job to trigger? > > The cron is set to run once per night only. > > > > > I think you can set quartz stateful=true, so it wont trigger new jobs > > while previous jobs are still active. > > No, I am already using stateful=true and that only prevents multiple > parallel executions of the same scheduled route. > > > Maybe that is what you mean by parallel? > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Concat-routes-tp5725581p5725641.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --e89a8f839dfb75d49804d3707f01--