Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Servlet Interest »

loaded servlet

william

2003-07-02


In my web.xml file I have something like that :
<servlet>
<servlet-name>myservlet</servlet-name>
<servlet-class>MyServletClass</servlet-class>
<init-param>
<param-name>mailHost</param-name>
<param-value>mail.host.com</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

so, the servlet is loaded by the servlet container when application start,
but when the servlet container determines that a servlet should be removed
from service, it calls the destroy method of the Servlet interface to allow
the servlet to release any resources it is using and save any persistent
state.

How can I keep this servlet loaded ?

___________________________________________________________________________
To unsubscribe, send email to listserv@(protected)
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html



©2008 junlu.com - Jax Systems, LLC, U.S.A.