Javed
Posts: 15
Nickname: javedm
Registered: Aug, 2002
|
|
Re: Servlet Pooling
|
Posted: Aug 20, 2002 12:22 AM
|
|
HI Keshav,
The concept of pooling is same for DB pooling or Object pooling or servlet pooling.
First let me say that a servlet spans a thread for each request form the client. But when u define a servlet as a single thread (Single Thread Model), there will only one thread per servlet. I hope you know this already :)
So, if a servlet is defined to implement Singler Thread Model, webserver will create multiple instances and store in a pool so that when a request comes it dosent have to initialize one.
The concept is same.
I donot think programmer has to do any extra job for this. He/She may configure the web server for intial pool size and any other params but I am not sure of this.
|
|