users@glassfish.java.net

Re: How to detect Glassfish at runtime?

From: Raju Uppalapati <ruppalapati_at_gmail.com>
Date: Sat, 26 Jul 2008 16:37:50 -0700

I think that's not very reliable because a webapp running on glassfish
could set that property value to something else.

_raju

On Jul 26, 2008, at 4:07 PM, "Manfred Riem" <mriem_at_manorrock.org> wrote:

> 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
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>