Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 13311 invoked from network); 19 Dec 2003 10:12:44 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Dec 2003 10:12:44 -0000 Received: (qmail 30781 invoked by uid 500); 19 Dec 2003 10:12:09 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 30717 invoked by uid 500); 19 Dec 2003 10:12:09 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 30637 invoked from network); 19 Dec 2003 10:12:08 -0000 Received: from unknown (HELO kerberos) (62.116.51.59) by daedalus.apache.org with SMTP; 19 Dec 2003 10:12:08 -0000 Received: From mail.at.efp.cc ([62.116.51.60]) by kerberos (WebShield SMTP v4.5 MR1a); id 1071828740394; Fri, 19 Dec 2003 11:12:20 +0100 Received: from WRPO (wrpo.at.intra.efp.cc [194.107.80.155]) by mail.at.efp.cc (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id hBJACJX02873 for ; Fri, 19 Dec 2003 11:12:20 +0100 From: "Reinhard Poetz" To: Subject: Calling pipelines in Cron-jobs - please review Date: Fri, 19 Dec 2003 11:11:22 +0100 Message-ID: <003401c3c618$750d0c50$1e01a8c0@WRPO> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Recently I've checked in a BackgroundEnvironment into our scratchpad. This is necessary for pipeline calls within cron jobs. I've implemented a cron job as abstract class which provides a process method that returns the content of the pipeline call as InputStream: http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/cron/java/org/ap ache/cocoon/components/cron/AbstractPipelineCallingCronJob.java?view=mar kup As I'm not the specialist for these Cocoon internals consider this code as first draft ;-) Could somebody more knowledgeable review it and improve it. If you want to test the example just check-out the cron sample which has been extended by a pipeline call. Thanks in advance! -- Reinhard