tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bo Xu">
Subject Re: Basic servlet question
Date Thu, 29 Nov 2001 23:46:44 GMT
----- Original Message ----- 
From: "Hawkins, Keith (Keith)" <>
To: "tomcat-user" <>
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?


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) 

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 :-)
Nov.29, 2001

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message