This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm trying to make a simple string (path to an important file) available to all webapps on a given virtual-host via server.xml. Here's an example of what does NOT work, but comes close:
The problem is that The "default context" only applies to stuff in the ROOT folder, but not any other webapps. What I really want is to be able to set an <Environment> value (or something equivalent) which is visible by all webapps under the <Host>.
Joined: Mar 06, 2007
Answer: You can do a per-host context by putting XML in: