Sam:
Ben is correct, you can have the JAVA_HOME set to differnt JDKs for each Tomcat instance.
This would be a somewhat complicated installation. I have tried it with multiple VirtualHost entries in the apache conf and there are several gotchas.
I decided to use apache VirtaulHost to separate catalina_home installations and create a worker for each one, with separate web server
doc roots.
I tried to get separate installations of the workers.java_home & workers.tomcat_home, but I am pretty sure that won't work without multiple apache homes. Then you would need at to proxy requests so that both installation would like to clients like they are just on port 80, that means that you need a "master" apache and one at each proxy "end point" -- a lot of work.
I got frustrated and decided that I could live with 'sharing' the workers.tomcat_home with one of the virtual host cataline home's.
Seems to work OK for development, though I would think in production this would be bad -- if your app breaks the
java that is running the workers then POOF all the apps go down...
[ January 28, 2005: Message edited by: jay wick ]