Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE3079824 for ; Thu, 24 May 2012 13:22:34 +0000 (UTC) Received: (qmail 54321 invoked by uid 500); 24 May 2012 13:22:34 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 54285 invoked by uid 500); 24 May 2012 13:22:34 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 54272 invoked by uid 99); 24 May 2012 13:22:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 13:22:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.mueller@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qc0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2012 13:22:29 +0000 Received: by qcsc20 with SMTP id c20so7162717qcs.32 for ; Thu, 24 May 2012 06:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=LTR+sh+MGpnV7oy0yxDtxgyUOuHZlSYByx57uHLMCoQ=; b=H/OScRtTtWr3WFPVjLahWxnjClj4a9Nsb0BoRt6ihd7KdgIrwBGQ1kVOFz7GlIWdtB l98pHtMCtXza/sfGpFY8oHoUVvmf2mSIb13P3b/FA8edgQm9NEtqN9jtRvcnXwCs7Op9 qAKwmJh9gWqtXM8dHb134pEpaEEFT4EVA37SO9oB97U3O36xlRplu5LqAoA4fX3irfzt TCLivH6bbW8Tz+67ggXmyPz6aLa8rHtyMWl28wBurAdhUvec6G952coLhbuWzlftkBWs hYDoKQiunD1w+a/9nAj+0A1ZixcVrG7QNJEoeGvsh8nX9K3QrFCKJFOGG6ERN8Qov9uU mbUQ== MIME-Version: 1.0 Received: by 10.224.181.83 with SMTP id bx19mr7813771qab.79.1337865728744; Thu, 24 May 2012 06:22:08 -0700 (PDT) Received: by 10.229.42.2 with HTTP; Thu, 24 May 2012 06:22:08 -0700 (PDT) Date: Thu, 24 May 2012 15:22:08 +0200 Message-ID: Subject: Use Camel to implement batches which are scheduled by a standalone scheduler From: =?ISO-8859-1?Q?Christian_M=FCller?= To: jb@nanthrax.net, dev@camel.apache.org Content-Type: multipart/alternative; boundary=485b397dcd3984ddff04c0c82386 X-Virus-Checked: Checked by ClamAV on apache.org --485b397dcd3984ddff04c0c82386 Content-Type: text/plain; charset=ISO-8859-1 As you may know, JB wrote already a similar blog about this topic [1]. However, in my company we have a few additional and slightly different requirements: - The controller route has to respond with a return value which indicates whether the exchange(s) could process without an error (return code == 0). This means if the exchange is sent to an queue and another route consumes this queue, we have to wait for this until we are able to provide a return value. - We have a more complex logic when we have to stop the route (e.g. we are also consuming from a queue and want to stop the route when the queue is empty) I made already a few test by using a RoutePolicy, but without a solution until now. If I finish this work, I will provide a new example for batch processing in Camel. [1] http://blog.nanthrax.net/2011/08/use-camel-cxf-and-karaf-to-implement-batches/ Best, Christian --485b397dcd3984ddff04c0c82386--