The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

singleton

Posted by william on May 10, 2001 at 10:46 AM

Use the singleton pattern - that is, the servlet has only one, private constructor, that is called from a getInstance() method, which itself checks to see whether the class already exists

> Can we anyhow guarantee that only one instance of that servlet is created by the servlet container.


> Thanks






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us