There are different ways to launch to use the cron.
Here is what I know.

1/ First method :
   - Configure the cron component in cocoon.xconf
- Create a trigger (cocoon component) : Your class should implements "cron" interface.

   In this case the cron will be lauched once Cocoon started.
---------------
2/ Second method :
- Use the "scheduler" component in a java class or a flowscript (the Cocoon example).
    public void service(ServiceManager _manager) throws ServiceException {
       // recuperation du scheduler
       manager = _manager;
       scheduler = (JobScheduler) manager.lookup(JobScheduler.ROLE);
   }

In this case the scheduler will be lauch whenever you use the class in the sitemap.
----------------

To launch a pipe everyday, I would use the first method.

I'm not a cron expert so if someone can complete my explanation, it would be great.


Lionel






Marc Salvetti wrote:

Thanks lionel,

but what about this cron job thing ? do i have to code a java class that implements some interface or is there a class to do this in the distrib ? In the example, the config seems to be spread in differents files. Do you know what is the minimal (but complete) configuration to lanch a pipe everyday ?

Best regards,

Marc

Lionel Crine a écrit :

Hi,

In this example, the trigger will be launched everyday at 2 AM :
<cron>0 0 2 * * ? *</cron>

Here, every 30 mins :
<cron>* */30 *  * * ? *</cron>

Hope that help

Lionel


Marc Salvetti wrote:

Thanks,
that's definitly what i need, but i badly miss a basic example on how to launch a pipeline everyday

anyone around have one ?

Best regards,

Marc

Geert Josten a écrit :

Hi,

Take a look at the cron block, that might be what you are looking for...

Cheers,
Geert

Marc Salvetti wrote:

Hello,

I need some files to be checked once a day and eventually updated depending on certain conditions (if a date inside the document is before the date of the day, some attributes need to be changed inside the doc)

Does anyone know the right cocoon component to use for that ?

Thanks,

Marc

___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Tilichargez cette version sur http://fr.messenger.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90

begin:vcard
fn:Lionel Crine
n:Crine;Lionel
adr:;;22 rue Etienne de Jouy;JOUY EN JOSAS;;78353;FRANCE
email;internet:[EMAIL PROTECTED]
title:documentary systems engineer
tel;work:01.34.58.70.70
tel;fax:01.39.46.06.90
x-mozilla-html:FALSE
url:http://www.4dconcept.fr
version:2.1
end:vcard


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to