users@glassfish.java.net

Re: restart glassfishv2u2 programmatically

From: <glassfish_at_javadesktop.org>
Date: Thu, 18 Sep 2008 11:22:18 PDT

To use cron, you would need to install Cygwin since you are on Windows.

Alternatively, Windows has a similar service "at":

C:\>at -?
The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.

I would use the technique I suggested (existence of a file causes a script run by "at" every 5 minutes to trigger a restart) since it seems like your other approach is not working.
[Message sent by forum member 'wfay' (wfay)]

http://forums.java.net/jive/thread.jspa?messageID=300206