The Artima Developer Community
Sponsored Link

Java Answers Forum
Servlet Pooling

2 replies on 1 page. Most recent reply: Aug 23, 2002 3:03 AM by Keshav

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Keshav

Posts: 11
Nickname: kesh
Registered: Aug, 2002

Servlet Pooling Posted: Aug 19, 2002 4:53 AM
Reply to this message Reply
Advertisement
Hi ALL,

Can anybody out there help with Servlet Pooling. I know the basics of Servlets & JSPs. I know the concept of Database Connection Pooling & Object Pooling in EJBs.

I need to know :

a. What is Servlet Pooling ?

b. Is Servlet Pooling a burden on the Programmer to implement or write some extra code ?

c. What is the role of the Web Server in Servlet Pooling ? Is the web server software vendor anyways involved in this.

Hope somebody out there clears my doubt

Thanx in advance

Keshav


Javed

Posts: 15
Nickname: javedm
Registered: Aug, 2002

Re: Servlet Pooling Posted: Aug 20, 2002 12:22 AM
Reply to this message Reply
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.

Keshav

Posts: 11
Nickname: kesh
Registered: Aug, 2002

Re: Servlet Pooling Posted: Aug 23, 2002 3:03 AM
Reply to this message Reply
Thanx Javed .. I very well know the concept of Single Thread Model

I have got the idea just need to go thr' the server properties or configuration files & check .

Thanx once again

Rgds
Keshav

Flat View: This topic has 2 replies on 1 page
Topic: Non-Rectangular windows using Java Previous Topic   Next Topic Topic: jar file need more help

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use