Kamil Burzynski wrote:
Why do you want such a solution? Even if Tomcat will unload your servlet for some reason, it will load it again with first user request directed to this servlet.I would like to create one of my servlets to be 'sticky': to be sure that Tomcat will never try to remove this servlet from memory. Is <load-on-startup> enough? I know that it will start my servlet as soon as tomcat starts, but will tomcat ever try to remove such servlet?
Have you considered using ServletContextListener? Maybe it will suit you better?
E.g. if there will be 1 month of inactivity, or so much requests arrive that out-of-memory will happen
OOM will kill entire Tomcat anyway. -- Mikolaj Rydzewski <[EMAIL PROTECTED]>
smime.p7s
Description: S/MIME Cryptographic Signature