Hello Jared, (CCed to the alias) > Bryan wrote: > > > What is also important are the details about constraints that must be > > satisfied for the container to destroy a servlet instance. The primary > > requirement is that there are no requests currently being processed by > > the servlet instance. In other words, if the container wishes to delete > > servlet X, but there are several requests being processed by X, then the > > container must wait until all of these requests have been completed.
Jared replied: > This sounds inconsistent with information on Sun's web site. On > http://java.sun.com/j2ee/1.3/docs/tutorial/doc/Servlets12.html#wp64798, > they write: > > "If your servlet has operations that take a long time to run (that is, > operations that may run longer than the server's grace period), the > operations could still be running when destroy is called. You must make > sure that any threads still handling client requests complete;" Jared is quite right; I oversimplified my explanation. The servlet spec (servlet-2_4-pfd3 in SRV2.3.4) declares: "Before the servlet container calls the destroy method, it must allow any threads that are currently running in the service method of the servlet to complete execution, or exceed a server-defined time limit." I stand corrected. :-) Regards, Bryan +-----------------------------------+------------------------------------------+ | Bryan Basham | What we are today comes from our | | Java Courseware Developer | thoughts of yesterday, and our present | | Sun Services | thoughts build our life of tomorrow: | | Phone: 1-303-272-8766 (x78766) | our life is the creation of our mind. | | E-mail: [EMAIL PROTECTED] | If a man speaks or acts with a pure | | Address: 500 Eldorado Blvd | mind, joy follows him as his own shadow. | | MailStop: UBRM05-135 | -- The Dhammapada (verse 2) | | Broomfield, CO 80021 | (trans. Juan Mascaro) | +-----------------------------------+------------------------------------------+ *************************************** SunNetwork 2003 Conference and Pavilion "An unparalleled event in network computing! Make the net work for you!" WHEN: September 16-18, 2003 WHERE: Moscone Center, San Francisco For more information or to register for the conference, please visit: http://www.sun.com/sunnetwork ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body 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