Hi,

> --- Urspr�ngliche Nachricht ---
> Von: "Michael Mehrle" <[EMAIL PROTECTED]>
> An: "Tomcat Users List" <[email protected]>
> Betreff: Scheduled task in tomcat - how?
> Datum: Tue, 17 May 2005 19:16:10 -0700
> 
> I need to create an automated task in tomcat that gets launched every two
> hours or so, does its work and then sleeps again.

Have a look at quartz (http://www.opensymphony.com/quartz).

 The task needs to send
> some request values via a secure (https) POST to a cgi script running on
> an
> outside server, then receive the response, parse it and put it into the
> database. The response doesn't return the values as request parameters,
> but
> instead simply returns records in CSV (comma separated values) format, one
> record per line.
> 
> So, here's what I'm pondering:
>   a.. What's the best way to create that automated (scheduled) task and
> run
> it as a servlet under tomcat (5.5.9)?

See above and look for the quartz initializer servlet then code up your
org.quartz.Job, describe it in jobs.xml and put in a CronTrigger for it.

regards

    Dirk

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++

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

Reply via email to