users@glassfish.java.net

Re: java:comp/env problems

From: <glassfish_at_javadesktop.org>
Date: Wed, 05 Mar 2008 14:40:40 PST

<<What if multiple applications depend on these values? Then they really should be defined centrally.

Different appservers have their own ways of doing that. For glassfish you can put a prop file in glassfish\domains\domain1\lib\classes directory (say glassfish\domains\domain1\lib\classes\foo.properties). Your app can load it as resource with ServletContext.getResourceAsStream or classloader. I haven't tried it, though.

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

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