Why not just use a separate thread within a servlet that acts as a
timer? That should be platform independent and seems like less work than
trying to get a servlet to integrate with cron or "at."
-Matt Tucker
Michael Nash wrote:
>
> Sam: The AT command on NT works very much like crontab - I use it on NT
> regularly for servlet jobs, and do something very similar to what you are
> discussion for a cut-off time for data warehousing.
>
> Mike N.
>
> -----Original Message-----
> From: Sam Rose [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 27, 1999 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Stopping writes to a database using a servlet?
>
> Thanks, but unfortunately I'm using windows and an oracle database.
>
> -----Original Message-----
> From: Tammam Al-Hamwy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 27, 1999 2:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Stopping writes to a database using a servlet?
>
> This seems like doing the 'crontab' job on UNIX. Is the database on UNIX?
> If so you can't you just manipulate the crontab file directly or through a
> script
> controlled by your servlet. In other word your servlet is nothing but a
> front end to
> the contrab.
>
> Hope this help. More information posted might help the list help you.
>
> Cheers,
>
> Tammam Al-Hamwy
>
> Voice: (416) 349-4627
> Fax: (416) 349-2450
>
> Sam Rose <[EMAIL PROTECTED]> on 04/27/99 05:39:36 AM
>
> Please respond to "A mailing list for discussion about Sun Microsystem's
> Java Servlet API Technology."
> <[EMAIL PROTECTED]>
>
> To: [EMAIL PROTECTED]
> cc: (bcc: Tom Al-Hamwy/Toronto/IBM)
> Subject: Stopping writes to a database using a servlet?
>
> Hello,
>
> Does anyone know how to use a servlet to make sure that a database con
> not be written to after a supposed date?
>
> I.e. say that after 3:00 today I could stop users writing to the
> database, and then commit all info?
>
> Thanks in advance.
>
> ___________________________________________________________________________
> 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
>
> ___________________________________________________________________________
> 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
--
-------------------------------
Matt Tucker
[EMAIL PROTECTED]
http://cs.uiowa.edu/~matucker
See CoolServlets:
http://www.coolservlets.com
-------------------------------
___________________________________________________________________________
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