Hi Steve,

This is the best suggestion that I've seen so far, and is probably what
I will go with (although, I will probably just place the config file in
the WEB-INF directory of the web-app for now).

Thanks for all of the ideas.  It would be nice if Apace Axis provided a
more standardized way of doing this, but it seems the config-file
approach is relatively "pure".

Thanks again,
-- 
=======================================
Jess Sightler
Programmer
Exim Technologies
131 Falls Street
Greenville SC 29601
Phone: 864-679-4651
=======================================



On Mon, 2002-06-24 at 13:54, Steve Loughran wrote:
> The way I configure all my apps right now is
> 
> 
> -configurable objects take a Configurable interface in constructor; this has
> a few getProperty methods and a getSubConfiguration(String name) method that
> returns a sub config
> 
> -this is mapped to an XML config file, though I could swap it for JNDI or
> something in future
> 
> -I have a different XML file for every host, driven off hostname
> 
> -when my app starts, it gets its hostname and pulls in the config file.
> 
> 
> this lets me get away with tunable configs for different boxes from a single
> WAR file. The JNDI option will let me move to a clustered approach as and
> when necessary.


Reply via email to