Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: Previously, I had been using the java Preferences class, which stores things in a way that is transparent to the java program (in the registry on windows, elsewhere on other OS's). IMH

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: > Previously, I had been using the java Preferences class, which stores > things in a way that is transparent to the java program (in the > registry on windows, elsewhere on other OS's). IMHO, the Java Preferences class is a

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: This is a followup to my question about startup parameters. After digging around a bit, it looks like my best bet is to use the Properties class to read my settings from a disk file at start

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, David Kerber wrote: > This is a followup to my question about startup parameters. After > digging around a bit, it looks like my best bet is to use the Properties > class to read my settings from a disk file at startup. That's generally how th

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread David Kerber
David Kerber wrote: Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: How to locate a configuration file on disk at runtime 2. Put the config file somewhere in the tree of my webapp, such at docbase or in conf. But again, I can't figure out h

Re: How to locate a configuration file on disk at runtime

2007-01-26 Thread Tim Funk
My preference is JNDI ( ) for such things. Then in web.xml - you can create a default entry in web.xml" configFile /etc/stuff java.lang.String Then it can be overridden in your context config: Then looked up in java via: *** import javax.naming.Context; import javax.naming.Initial

Re: How to locate a configuration file on disk at runtime

2007-01-25 Thread David Kerber
Caldarale, Charles R wrote: From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Re: How to locate a configuration file on disk at runtime 2. Put the config file somewhere in the tree of my webapp, such at docbase or in conf. But again, I can't figure out how to pick that locati

RE: How to locate a configuration file on disk at runtime

2007-01-25 Thread Caldarale, Charles R
> From: David Kerber [mailto:[EMAIL PROTECTED] > Subject: Re: How to locate a configuration file on disk at runtime > > > 2. Put the config file somewhere in the tree of my webapp, such at > > docbase or in conf. But again, I can't figure out how to pick that > &

Re: How to locate a configuration file on disk at runtime

2007-01-25 Thread David Kerber
David Kerber wrote: This is a followup to my question about startup parameters. After digging around a bit, it looks like my best bet is to use the Properties class to read my settings from a disk file at startup. The properties api appears to be easy to use, and works very similarly to the