pavan jahagirdar
,
Greenhorn
Dec 26, 2013 07:01:41
We know that Servlet container creates a new thread for each incoming request , that is a thread is created each time service method is invoked...
is there a way to manually kill that thread ?
thanks in advance
Ulf Dittmer
,
Rancher
Dec 26, 2013 07:06:44
Welcome to JavaRanch.
While a new thread may or may not be created when a request comes in -the servlet container may have a pool of existing threads from which one is used when a request comes in- it would be be a bad idea to mess around with objects that are under the control of the servlet container.
What prompted this question?
pavan jahagirdar
,
Greenhorn
Dec 26, 2013 07:10:14
i want to keep the count of the times the service method .... but at the same time i dont want multiple threads being created!!
Ulf Dittmer
,
Rancher
Dec 26, 2013 07:12:57
See my answer in the other topic where you asked that question; please do not post essentially the same question multiple times.
pavan jahagirdar
,
Greenhorn
Dec 26, 2013 07:16:47
thank you sir.. for such a quick response....
i am new to this forum, in future i will surely use descriptive subjects.....
A feeble attempt to tell you about our stuff that makes us money
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com