> I know that Servlets are inherently multithreaded...meaning once a Servlet
> is loaded, it can serve multiple requests by spawing multiple threads.
> Is there a limit on the number of threads a servlet can spawn ? Or is it a
> configurable param of the WebServer ?
At least it is configurable parameter of JWS. I believe, that a good servlet
engine sould provide a possibility to cofigure this parameter.
> Is it more efficient to have multiple servlets, each handling different
type
> of requests OR since anyway the Servlet spawns multiple threads for
> concurrent requests, can I have just one Servlet which invokes different
> methods internally depending on the Action param or something?
Sure, you can. It's up to your preferences, a servlet engine or your code
can decide what function should be performed. Actually, I prefer to use one
servlet for everything. It can use several servlet internally. It gives your
more possibilities, for example create own request and response classes.

Dmitry.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to