For a servlet not hosted in a distributed environment (the default), the servlet container must use only one instance per servlet declaration
Why it is using MUST?.I think we can have pool of instances per servlet declaration. Bye. Viki.
• Sun Certified Programmer for Java 2 Platform (SCJP2)
• IBM Certified Professional for Object Oriented Analysis and Design with UML
• IBM Certified System Administrator for WebSphere Application Server v5.0
• Certified Business Analysis Professional (CBAP®)
While I don't know the philosophy behind this but if I were to make an educated guess, I would say this restriction is placed inorder to enforce the multi-thread principles of Servlets. Have only ONE instance and create a seperate thread for each request. - satya
Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Curse your sudden but inevitable betrayal! And this tiny ad too!
a bit of art, as a gift, the permaculture playing cards