Re: Singleton pattern question
| From: | Raditha Dissanayake | Date: | Thu, 01 Jan 2004 00:55:39 +0000 |
| Subject: | Re: Singleton pattern question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173585@lists.php.net to get a copy of this message | ||
Hi,.
Unfortunately in PHP this may be true, however in j2ee if you use the singleton pattern the result would be what you expect.
happy new year.
Hardik Doshi wrote:
Hi Group, Currently i am using the singleton design pattern in one of my projects. I was under impression that by using the singleton pattern i need to initialize system configuration only one time (At the time of login) but once i implemented the system, i came to know that system initializes an instance on every request of the webpage (On every request, singleton class reads the system configuration and returns the new instance). Is that the normal nature of using the singleton pattern in the web environment? Please let me know. Thanks Hardik __________________________________ Do you Yahoo!? Find out what made the Top Yahoo! Searches of 2003 http://search.yahoo.com/top2003-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.