Context Reloading in Tomcat 5.5.7
Today I started using Tomcat 5.5.7 instead of 5.0.28. It was fairly easy to install on my PowerBook - I just had to add the xerces and jmx JARs from the compat package to get things working. The one thing I noticed that's different from Tomcat 5.0.28 is that when I deploy any file, it reloads the context. This can be a pain when I'm just copying JSPs into the webapps directory. I'm willing to admit it could be a problem with my "maven deploy" goal, but since this didn't happen on 5.0.28, I suspect it's the newer version of Tomcat. On 5.0.28, the context was only auto-reloaded when I updated files in the classpath.
The main reason this was frustrating is because we look up a bunch of data from a web service on app startup. The API we're talking to is nice and slow and it takes almost 50 seconds to start our application. Rather than go back to the older version of Tomcat, I wrote some code to serialize all the ServletContext variables to disk, and then check for that file on startup. If the file exists, it deserializes it and puts all the objects back in the ServletContext. Works pretty good and certainly speeds up my development environment. After all this, I'll probably downgrade to 5.0.28. Auto-reloading when classpath files change seems like a better way to go.
Posted by Daniel Campagnoli on February 11, 2005 at 01:34 AM MST #
Posted by Kev Palfreyman on February 11, 2005 at 10:21 AM MST #
Posted by Ahmed Mohombe on February 11, 2005 at 10:45 AM MST #
Posted by Patrick Dumontel on February 11, 2005 at 01:47 PM MST #
Posted by Dan Washusen on February 13, 2005 at 09:55 PM MST #