RE: Starting web app with properties set

2009-10-22 Thread Caldarale, Charles R
> From: news [mailto:n...@ger.gmane.org] On Behalf Of Ken T. > Subject: Re: Starting web app with properties set > > I was really hoping that there would be a way to define the > properties in the context file, but I guess not. There is; as usual, it's in the doc: http

Re: Starting web app with properties set

2009-10-22 Thread Ken T.
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, t

Re: Starting web app with properties set

2009-10-22 Thread Elli Albek
(GMT-0800) America/Los_Angeles Subject: Starting web app with properties set I looked around online but couldn't find anything. Is there a way to start a web application under Tomcat with specific properties mappings. Say I wanted to start my app with the property setting: user.database=Pr

Re: Starting web app with properties set

2009-10-22 Thread David Smith
You could implement a ServletContextListener that reads the properties and makes them available however your app needs them. --David Ken T. wrote: > I looked around online but couldn't find anything. Is there a way to > start a web application under Tomcat with specific properties mappings. >

Re: Starting web app with properties set

2009-10-22 Thread Pid
On 22/10/2009 17:58, Ken T. wrote: I looked around online but couldn't find anything. Is there a way to start a web application under Tomcat with specific properties mappings. Say I wanted to start my app with the property setting: user.database=ProdDB How would I go about doing so? Put them

Starting web app with properties set

2009-10-22 Thread Ken T.
I looked around online but couldn't find anything. Is there a way to start a web application under Tomcat with specific properties mappings. Say I wanted to start my app with the property setting: user.database=ProdDB How would I go about doing so? Thank you, -- Ken T.