users@glassfish.java.net

Web Service: How do I set properties to be gotten via System.getProperty()?

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 May 2008 10:06:51 PDT

I understand that using environment variables to communicate information such as the location of a configuration file is considered bad form -- I should use System.getProperty("myConfigFile") instead.

But how do I set a property to be read from within a web service? The AppServer is running my code for me, so I can't do it on the command line with -DmyConfigFile, right?
[Message sent by forum member 'mark_molloy' (mark_molloy)]

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