----- Original Message ----- > Hi, > > In TC7, is there a way to tell Tomcat to never unload a given servlet > unless Tomcat itself is being shutdown? I want a single servlet > instance that I can know will exist for the life of the tomcat > process without being unloaded & reloaded (unless someone manually > instructs Tomcat to do so, of course).
I'm not sure this will do exactly what you want, but if you set "autoDeploy" on the Host tag to "false" it will prevent any applications from deploying / undeploying while Tomcat is running. This would roughly tell Tomcat to start an app (and it's servlets) when Tomcat starts up and shut down an app (and it's servlets) when Tomcat is shutdown. I say roughly because I believe there might be a few ways to work around that (manager, jmx). > Yes, I know I'm "not supposed to do this" and that the servlet spec > says a container is allowed to unload a server any time as long as a > request is not in process. I still would like to know if there's > some Tomcat specific way to tell TC7 to never unload the servlet. > And yes, I realize even if there is such a way that future versions > of Tomcat may remove this capability. :) Maybe you could take a step back and tell us about your general use case for this feature. With that in mind, perhaps someone can suggest a solution to the general problem even if your specific request is not possible. Dan > Thanks in advance, > > Chip > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org