users@glassfish.java.net

Anyplace to put doain level configuration information?

From: <glassfish_at_javadesktop.org>
Date: Wed, 11 Apr 2007 10:17:31 PDT

Simply put, I have configuration data that is domain dependent (dev vs stage vs production) that I'd like to configure at the domain level, but outside of the EAR file (since I don't want to have to reassemble my EAR for each different domain).

Is there any place that I can put this data that is accessible by both web apps and enterprise apps?

About the only thing that I've found is to define a property on the Java start up that defines the full path to a property file that I can load.

That works OK, but I was hoping for someplace that I could just drop a file in the domain directory tree that the app server just happens to "see" on its CLASSPATH.

Any one have any suggestions? Is there a global place I put stuff in JNDI, perhaps?

Kind of 6-to-1, 1/2 dozen to another, but I'd just like to know all of the options.
[Message sent by forum member 'whartung' (whartung)]

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