Re: Best way to store config variables

2005-08-18 Thread Konrad Billewicz
Have you considered Spring and it's IOC framework? Works wonderfully with Struts (even has a lovely plug-in to get the whole thing working together). The configuration is only one aspect of the whole Spring framework. I was reading about Sprint but I was unable to catch what the Spring

Re: Best way to store config variables

2005-08-17 Thread Dave Newton
Konrad Billewicz wrote: At the moment I wish to do it using web.xml or, maybe better, context file in conf/Catalina/. Currently there are serveral things to change ie. data source parameters. What do you think about it? I think storing it under the Tomcat config directories would be a

RE: Best way to store config variables

2005-08-17 Thread Marsh-Bourdon, Christopher
- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: 17 August 2005 16:20 To: Struts Users Mailing List Subject: Re: Best way to store config variables Konrad Billewicz wrote: At the moment I wish to do it using web.xml or, maybe better, context file in conf/Catalina/. Currently there are serveral

Re: Best way to store config variables

2005-08-17 Thread Craig McClanahan
On 8/17/05, Dave Newton [EMAIL PROTECTED] wrote: Konrad Billewicz wrote: At the moment I wish to do it using web.xml or, maybe better, context file in conf/Catalina/. Currently there are serveral things to change ie. data source parameters. What do you think about it? I think storing

Re: Best way to store config variables

2005-08-17 Thread Dave Newton
Craig McClanahan wrote: On 8/17/05, Dave Newton [EMAIL PROTECTED] wrote: I think storing it under the Tomcat config directories would be a really bad idea, since they're application (not server) level configs. Personally, I keep things like this in either web.xml, a struts config file, or

Re: Best way to store config variables

2005-08-17 Thread Konrad Billewicz
Craig McClanahan craigmcc at gmail.com writes: For Tomcat in particular, I'd encourage you to use the JNDI naming context mechanisms for defining initialization parameters and data sources. I have done it in this way. I think it will be good solution (explanations in other posts). Thank you