Does anyone have documentation about Tomcat 7.0.5 parallel deployment? Particularly with Grails?
Google only seems to find the original Beta announcements.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityIn the documentation for tomcat 7 under "Naming" it is specified that you can specify which context version your application has by naming it warfile##{context-version}.war. The context path will then be /warFile and it will be versioned context-version.
I have tried this and it works perfectly for me so far, and I can be logged in to two different versions of my application in two different browsers if one browser has an old session and the other one a new session.
It might be worth to remember that after a while you might end up with a lot of war-files and folders, so deleting old versions regularly might be a good idea...
Also, cited from the documentation:
String comparisons are used to determine version order. If version is not specified, it is treated as the empty string. Therefore, foo.war will be treated as an earlier version than foo##11.war and foo##11.war will be treated as an earlier version than foo##2.war. If using a purely numerical versioning scheme it is recommended that zero padding is used so that foo##002.war is treated as an earlier version than foo##011.war.
Here is some official documentation on it: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Parallel_deployment. I'll post more if I find any.