users@glassfish.java.net

RE: How to detect Glassfish at runtime?

From: Manfred Riem <mriem_at_manorrock.org>
Date: Sat, 26 Jul 2008 17:07:03 -0600

Could you not look at the System properties?

See your JVM Report to see what to look for. For GFv2 it is

product.name = Sun Java System Application Server 9.1_02

Let me know if that works ;)
Manfred

-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Saturday, July 26, 2008 5:16 PM
To: users_at_glassfish.dev.java.net
Subject: Re: How to detect Glassfish at runtime?

All I care about is a class that I can sniff that tells me if I am running on Glassfish.
One constraint I have is ... I dont want to instantiate any Glassfish related classes ... i just want to attempt a load. So if a class unique to glassfish can be loaded ... thats exactly what I want. I forgot to mention that my class located inside a jar in the domains/domain1/lib directory and I dont have access to the Servlet Context inside this class.
[Message sent by forum member 'uppalapati' (uppalapati)]

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net