> yes, I know how to do it (private constructor, etc), but how tomcat
> will call an getInstance() method instead of create a new instance of
> it?

No... you move the sensitive code *out* of the Servlet into a Singleton, and
then code in your Servlet interacts with that Singleton.

Can you post a snippet of code that shows what you're trying to do and why
you're trying to make your Servlet a Singleton?  Maybe someone will have a
suggestion.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to