This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Hi, U need not worry abt managin threads. The Web container does the job for U. The only thing that u need to know is that ur servlet is muti-threaded. If u want to make it single threaded make it implement SingleThreadModel (Ensures that one request is processed at a time)
You should only use a Thread to carry out processes that are separate from the request - response cycle. For example, I have used Threads to manage a cache of data files, send email, and download XML formatted headlines. In every case these Threads are attached to separate utility objects, NOT servlet code. Bill