tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bo Xu" ...@cybershop.ca>
Subject Re: Basic servlet question
Date Thu, 29 Nov 2001 23:46:44 GMT
----- Original Message ----- 
From: "Hawkins, Keith (Keith)" <kphawkins@avaya.com>
To: "tomcat-user" <tomcat-user@jakarta.apache.org>
Sent: Thursday, November 29, 2001 5:54 PM
Subject: Basic servlet question


How many instances of a given servlet class will be loaded by Tomcat.  
Just 1 or can many instances be loaded?  What determines this?

Thanks,
Keith
[...]


for any Servlet class, only 1 Class-object(of it) will be loaded 
into the ClassLoader of  webapp in witch that Servlet class is in.

for every "Servlet declaritaion", container  will make one(no pool) 
instance. 

no matter you define "Servlet declaritaion" in WEB-INF/web.xml
or not,  the "default" "Servlet declaritaion" will be always there. i.e.:
- if you define 0 "Servlet declaritaion", there will be 1 instance
- if you define m "Servlet declaritaion", there will be m+1 instance(s)

hope it is right    //haha :-)
Bo
Nov.29, 2001



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message