users@glassfish.java.net

checking if a server has already got a shutdown command?

From: <glassfish_at_javadesktop.org>
Date: Tue, 23 Jun 2009 04:15:50 PDT

hi *,

does anyone know if it is easy to detect if a server that my code is running on has already got a shutdown signal from e.g. asadmin?

something like:

if( Server.getState() == ServerState.SHUTDOWN) {

}

does something like this exist in glassfish?

regards chris
[Message sent by forum member 'eingfoan' (eingfoan)]

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