Ondrej, this is a great question.
We run multiple projects with ActiveWeb + ActiveJDBC and maintain many environments (development, test, staging, production).
We use Jetty locally and Tomcat in all other environments. We do not run multiple applications on the same instance of Tomcat. We run multiple Tomcat instances,
and every application is deployed on a separate Tomcat as a ROOT.war. This allows us to restart and maintain applications independently from one another.
Usually we specify an environment as:
export ACTIVE_ENV=production
in script Tomcat/bin/setenv.sh
Also, we have separate servers for separate environments. We do not run production and stating on the same server.
I hope this helps.
Thank you
igor