Jothi Shankar Kumar wrote:
Kengkaj Sathianpantarit wrote:
Jothi Shankar Kumar wrote:Are there new threads that are spawned for each requests to the Singleton bean in Spring? Something like the service method in Servlets???
It depends on that you (or servlet container or any code) create a new thread or not. Spring Framework doesn't create new thread.
What do you mean here? If I need I can create a new servlet thread?? The servlet specification says that for each request, the container creates a new thread starting from the service method. So I though for the Singleton Spring beans, Spring would be doing something like that...
I mean if servlet container create a new thread, there will be a new thread. Spring doesn't create a new thread.
I just rephrase my answer. I wonder what makes you think Spring will create a new thread.
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional