Monitoring Glassfish Status
From an external standalone Java client I need to determine if a remote (or local) instance of Glassfish is running (i.e. the domain was started). Right now I repeatedly create a JMX connection. If the connection is successful Glassfish is running, otherwise it's not. Is this the best approach or is there a better way?