Howdy,
> If I write an servlet and DO NOT implement the SingleThreadModel, I
>have a guarantee that I'll have only one instance of it?
No.
>If not, here is
>a way to do this?
No.
If you need only one instance of something, put in in a singleton. Have
your servlets use the singleton. A google search for "the singleton
design pattern java" will yield many explanations and examples.
Yoav Shapira
Millennium ChemInformatics
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
|