You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dean Cording <De...@kaz-group.com> on 2003/12/10 02:52:32 UTC

Using Cron to call pipelines in background

Has anyone used the Cron block to invoke a pipeline in the background?
 
I have a requirement to generate and send out via email regular reports
generated by Cocoon.  Generating the reports and emailing them using the
Sendmail transformer is the easy bit.  What I'm not sure about is how to use
Cron to trigger the processing of the pipeline.
 
I've had a look at David Kavanagh's work but the last development was that
it did not work under 2.1.
 
Note that this needs to be a self contained application so using an external
trigger is not an option.
 
Any hints, guidance, code snippets or complete solutions would be much
appreciated.
 
 
Cheers,
 
Dean

Re: Using Cron to call pipelines in background

Posted by David Kavanagh <da...@dotech.com>.
BTW, I have a version working under 2.1 now, but stopped working on it 
when the Quartz scheduler was integrated. I figured if our app needed to 
migrate to 2.1, I'd just add features to the integrated scheduler to 
match what my task manager does.

David

PS. I'd be happy to share.

Dean Cording wrote:

> Has anyone used the Cron block to invoke a pipeline in the background?
>  
> I have a requirement to generate and send out via email regular 
> reports generated by Cocoon.  Generating the reports and emailing them 
> using the Sendmail transformer is the easy bit.  What I'm not sure 
> about is how to use Cron to trigger the processing of the pipeline.
>  
> I've had a look at David Kavanagh's work but the last development was 
> that it did not work under 2.1.
>  
> Note that this needs to be a self contained application so using an 
> external trigger is not an option.
>  
> Any hints, guidance, code snippets or complete solutions would be much 
> appreciated.
>  
>  
> Cheers,
>  
> Dean


RE: Using Cron to call pipelines in background

Posted by Reinhard Poetz <re...@apache.org>.
From: Christian Haul

> Dean Cording wrote:
> > Has anyone used the Cron block to invoke a pipeline in the 
> background?
> 
> If you use the scheduler, you may not access cocoon: URLs 
> because they are only available from within a request. A 
> workaround is to use http: URLs and thus create an external 
> request. To avoid others from calling those URLs you could 
> restrict them to access from localhost by matching the 
> client's IP address for example.

I'm working on this - pls follow 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25384

--
Reinhard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Using Cron to call pipelines in background

Posted by Christian Haul <ha...@informatik.tu-darmstadt.de>.
Dean Cording wrote:
> Has anyone used the Cron block to invoke a pipeline in the background?

If you use the scheduler, you may not access cocoon: URLs because they
are only available from within a request. A workaround is to use http:
URLs and thus create an external request. To avoid others from calling
those URLs you could restrict them to access from localhost by matching
the client's IP address for example.

	Chris.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org