users@glassfish.java.net

Creating system variables and accessing them in applications

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 Mar 2007 15:29:52 PST

Hi,

How/where would I define/configure my own custom system variable on the application server?

The follow up to that is how do I then access that system variable in application code running on the app server?

For example, say I wanted to configure an address "http://www.something.com" so that it is in some configuration file (domain.xml ???) that can be accessed by any code on the appliation server. In this way I could change this address without changing code.

Thanks for any help!!
[Message sent by forum member 'bkatnich' (bkatnich)]

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