users@glassfish.java.net

How to verify if server is down

From: <glassfish_at_javadesktop.org>
Date: Mon, 17 Aug 2009 14:48:26 PDT

Hey all,

How can I verify if server is down from a desktop client? I tried doing a try-catch lookup to a Stateless SB, but it crashes and doesnt catch the exception:

try{
    // do lookup
} catch (Throwable t){
    // report error
}

if glassfish is down, the catch doesn't work, Is there a other way to do that?

Thanks in advance
[Message sent by forum member 'aleeebr' (aleeebr)]

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