"Scheiderer, Stephan" wrote:
> Again, because of email failure... sorry, if you get it twice!
>
> Hi folks,
>
> I'm using Apache and the JServ module. Two questions:
>
> 1) Is the destroy() method always (!) called at the end of a servlet even if
> an uncaught exception has been risen???
> It's important for me because of freeing static resources...
> 2) Where can I set the time the service() method is allowed to run??? In
> which server variable??? I only find the times for the init and
> the destroy methods...
>
(1) The destroy() method is *not* called after each doGet() or doPost() call.
It is typically called only when the servlet engine is being shut down
gracefully, although the engine has the right to call it at other times as
well.
(2) There is nothing in the servlet API itself to track time usage. How are
you finding the times for init() and destroy()? Can't you do whatever that is
for your doGet() or doPost() calls?
Craig McClanahan
___________________________________________________________________________
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