cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: [2.1] schedule some actions
Date Tue, 01 Apr 2008 11:34:21 GMT
On Apr 1, 2008, at 6:47 AM, tigre@alessandro.vincelli.name wrote:
> You can use Cocoon Cron Block:
> see this for an example and doc:
> http://cocoon.zones.apache.org/demos/release/samples/blocks/cron/samples

There is a better, lightweight thread scheduler built in into Cocoon.  
API is:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/thread/RunnableManager.html

You just need to lookup RunnableManager and use any of schedule()  
methods to schedule a one-time, or periodic job.

Vadim


> Bye
> ----- Original Message Follows -----
> From: nanomonk <brain_box@inbox.ru>
> To: users@cocoon.apache.org
> Subject: [2.1] schedule some actions
> Date: Tue, 1 Apr 2008 03:31:18 -0700 (PDT)
>
>> hmm.. Can I to schedule some actions?
>> I need something like a thread that always works and do
>> something at custom time. I just can't understand how to
>> start\stop it with cocoon. I don't know, maybe I should to
>> use servlet, but how to start own servlets in cocoon?:)
>> maybe there is exist true-way?;)
>>

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


Mime
View raw message