On Thu, 22 Oct 2009 19:56:50 -0700, Elli Albek wrote:

> Load the properties using java.util.Properties, and store them in a
> place that is accessible in the war (like a static variable or context
> attribute).
> 
> If you are thinking about properties such as database/mail server
> connections, then keep the OUTSIDE of the war file, not in XML or other
> things that will require your sys admin to open war files and change
> them, or mix tomcat configuration with application database connection
> properties, etc.
> 
> A good place for you property files is [tomcat]/shared/classes. Property
> files in this folder are accessible to the war files via the standard
> class loader. The down side is that the same file is accessible to all,
> so if you need a separate configuration for each war you will have to
> use different file names.

This is the kind of information I was looking for.  I was really hoping 
that there would be a way to define the properties in the context
file, but I guess not.  

Thank you,

-- 
Ken T. <ktectr...@gmail.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to