> 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
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
(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
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.
>
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
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.