i ended up writing a cron-like servlet because as
we migrated code to and from and as the team expanded
we tended to drop/forget the cron (or at) dependencies.

writing a servlet which registered to fire up at server
start time and spun in the backround doing its application
specific task helped ease the appliction deployment cycles
tremendously.

i could try to dig up the code if that'd help. i'm sure
there samples galore out there.

hope this helps,

- james
Nic Ferrier wrote:
>
> Live Software had a servlet to do this. Don't know if it's still
> around.
>
> Personally I think it's a bad idea.
>
> The idea of using a seperate thread is ok, if you have a servlet that
> needs to do something periodically then either spawn a thread with a
> periodic TTL and do the operation after the TTL or write to some
> external timed operation system, like cron.
>
> Nic
>
> >>> Ben Coppin <[EMAIL PROTECTED]> 8/20/99 11:03:29 AM >>>
> Has anyone investigated the use of servlets to carry out periodic
> tasks? I
> have a servlet through which users can select topics on which they
> want to
> be emailed regularly. I was thinking that it might be neat if instead
> of
> using cron to do this, I had a separate thread in the servlet, or
> perhaps a
> separate servlet periodically wake up and send out emails and then go
> back
> to sleep.
>
> Does this sound like a daft idea, or has someone out there already
> done
> something like this?
>
> Thanks,
>
> Ben
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in
> the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
>
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
>
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to