Simplified situation:
- I have 1 Tomcat container and 1 WAR which uses a database.
- The database configuration sits in a properties file (in the war).
- I deployed the WAR 2 times, one webapp on contextpath
/a
and one webapp on contextpath/b
. - Both webapps now point to the same database (same cfg).
What I want is that each webapp points to a different database. So, the webapp on /a
points to database A and the the webapp on /b
points to database B.
How would you solve this? (without splitting the war itself)