"Kamil Burzynski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > 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? > E.g. if there will be 1 month of inactivity, or so much requests arrive > that out-of-memory will happen? > Maybe I should create some background thread or socket or whatever? >
Please read the other responses to this thread, since they are correct that there is no guarantee. However, the current implementation of TC (3.3-6.0) will not unload a Servlet unless the entire context is reloaded (with a slight exception for JSP pages). But then you are programming against Tomcat itself, in an area where there is no guarantee that it won't change in the future, and it may not work if you try to move to another Servlet container. > Any solutions appreciated, thanks in advance. > > -- > Best regards from > Kamil Burzynski > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]