users@glassfish.java.net

Re: GLASSFISH 3.1 enviroment variable

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Mon, 28 Nov 2011 08:18:18 -0600

If you are talking about properties that are obtained via the
System.getProperty() method, it is possible to define these within
GlassFish using the "asadmin create-system-properties" command. Any
properties defined in this way will be visible to applications.

Tom

On 11/25/2011 6:34 PM, MyQwip Developer wrote:
>
> ------------------------------------------------------------------------
>
> I'm sorry but I still do not understand ..
>
> Are you talking about application client container or a standalone
> java application
>
> I think he is referring to shell-managed environment variables such as
>
> $ export APPDEBUG=1
> $ asadmin start-domain
>
> So then you access the environment variable APPDEBUG to control
> something. That's my guess anyway.
>
> This topic is covered
> here: http://docs.oracle.com/javase/tutorial/essential/environment/env.html
> and I don't see why it wouldn't work for an application contained in
> GF, unless there is some security mechanism to stop it.
>
>
>
> --
> /*
> /*
> ------------------------------------------------------------------------
> */
> */Alan/*
> MyQwip* Development Team/