----- Original Message ----- From: "Hawkins, Keith (Keith)" <[EMAIL PROTECTED]> To: "tomcat-user" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>