users@glassfish.java.net

Re: Restarting Glassfish

From: <glassfish_at_javadesktop.org>
Date: Fri, 21 Sep 2007 16:57:05 PDT

> I was wondering if there is any particular reason for
> the restart option
> being missing - it would be nice i could restart GF
> just clicking on the
> "restart required" message

Well, the reason this doesn't work for a standard server deployment is that there's nothing there to restart the server. There's no "easy" mechanism that the server has to restart itself as a single process.

What you discovered is that you could use the batch file in a loop as this agent for restarting the server.

There are other options along this line.

I assume (though do not know how) that you run GF as a Windows service, and I guess that a Windows service can restart if the service "fails", so that could be one mechanism.

If you were on Solaris, and configure Glassfish using the SMF, then it could also be configured to restart the process when it fails.
[Message sent by forum member 'whartung' (whartung)]

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