users@glassfish.java.net

Re: Reading System Properties

From: Tom Mueller <tom.mueller_at_oracle.com>
Date: Fri, 18 Mar 2011 10:17:33 -0500

The system properties from the domain.xml are put into the Java
System.properties, so that they are available via System.getProperty.
Is that not working for you?

Tom

On 3/17/2011 8:48 PM, forums_at_java.net wrote:
> Just to add, I've tried @Resource injection, but that only works with the
> ejb-jar file which I do not want to have, and its also does not serve the
> purpose of reading system properties from the configuration. There is
> actually more that I want to do with this. I need to be able to read
> other
> cluster configuration values, such as port number, the log file location,
> etc, so I really need access to the cluster/server configuration
> basically.
> Thanks
>
> --
>
> [Message sent by forum member 'lprimak']
>
> View Post: http://forums.java.net/node/782866
>
>