me wrote:
Hi,

I'm working on configuration issues and I'm searching for the best way to
have a consitent configuration over the whole webapp (or more webapps).

The webapp has got a sitemesh-freemarker-template and the views are done with jsps. What I wanted to do is to have configuratio values (such as hostnames of other servers) on a single point (for example in a database). So I can access them also from the other servers and have a confiuration repository which i can change on a development environment to use it on a productional site.

Does anybody have a "great/best way" idea?

One approach is to place those resources in a directory accessed via JNDI. That will allow you to share resources between your apps and containers. There is overhead associated with JNDI lookups but it's supported by every J2EE container. It may be over-the-top for what you want.

http://java.sun.com/products/jndi/tutorial/
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to