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