Originally posted by Mark Mescher:
Is this a good solution?
Leandro Melo
SCJP 1.4, SCWCD 1.4
Originally posted by Mark Mescher:
If I deploy my different Servlets in Tomcat, it is possible that each Servlet has its own Instance of the singleton. Do you think this is a problem?
Leandro Melo
SCJP 1.4, SCWCD 1.4
Leandro Melo
SCJP 1.4, SCWCD 1.4
Originally posted by Mark Mescher:
well I know that there is normally only one Instance of a Singleton. But I want to call methods of the Singleton through different Servlets!
Originally posted by Mark Mescher:
And if It would be nice if a Singleton in a many-Servlets-Tomcat / Jboss - Webapp would be really single:-)
Leandro Melo
SCJP 1.4, SCWCD 1.4
Leandro Melo
SCJP 1.4, SCWCD 1.4
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|