2010/12/11 Julien Martin <bal...@gmail.com>:
> -MOST
> IMPORTANTLY, having for each domain name a unique context parameter
> (therefore different for each domain name) that I will retrieve in my app to
> display different information to my users accordingly.
>

You can create the following file, as mentioned in [1]:
$CATALINA_BASE/conf/[enginename]/[hostname]/context.xml.default

There you can add <Environment> entries, as you would in one's
webapp's context.xml, as documented in [2].

That "context.xml.default" file serves as the default for context.xml
files of webapps on that specific host.

Then in your webapp you will use JNDI to get the value of that
environment variable.

YMMV

[1] http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
[2] 
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html#context.xml_configuration

Best regards,
Konstantin Kolinko

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

Reply via email to