dev@glassfish.java.net

How to tell if running in GF server JVM?

From: Cheng Fang <cheng.fang_at_oracle.com>
Date: Wed, 30 Jun 2010 13:47:30 -0400

I have a GlassFish utility class (not a component or service) that may
need to do things a little differently depends on its execution environment.

Is there a way to tell whether a class is currently running inside GF
server JVM, or in the client-side as a referenced library?

Thanks,
-cheng