> Actually the question is how can I find out (or manage) if the
thread of my servlet is destroyed or not?
>Marian
use this example to manage Thread Count
-------------------------------------------------------------TestServlet.jav
a
import javax.servlet.http.*;
public class TestServlet extends HttpServlet{
private int threadCount = 0;
public void service(HttpServletRequest request, HttpServletResponse
response){
try{
addThread();
System.out.println("Current thread count = "+threadCount);
}finally {
delThread();
}
}
private synchronized void addThread(){
threadCount++;
}
private synchronized void delThread(){
if (threadCount!=0) {
threadCount--;
}
}
}
Yuriy
___________________________________________________________________________
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