Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Pattern »

Re: Singleton

Vadlamudi, Ranga Rao (Cognizant)

2003-08-08


What can be a best implementation of singleton
> pattern?
Please go through the below URL
http://www.javaspecialists.co.za/archive/Issue052.html

-----Original Message-----
From: PavanKumar Keely [mailto:keelypavan@(protected)]
Sent: Friday, August 08, 2003 2:38 PM
To: J2EEPATTERNS-INTEREST@(protected)
Subject: Re: Singleton


Hi,

>Also is there any means coming to your mind so
> that we can restrict a
> class to sigleton across different classloaders.As
> each classloader will
> have its own singleton within its environment & this
> condition may not be
> acceptable for a pure sngleton.

I think we can make a class Singleton throught out all
the class loaders using RMI. But one problem with this
approach is lookup, marshalling, unmarshalling of
paramaters. If there is any other approach I would be
very glad to know.

bye

Pavan
--- Sanjiv Kapila <skapila@(protected):
> 1. What can be a best implementation of singleton
> pattern?
>
> 2.Also is there any means coming to your mind so
> that we can restrict a
> class to sigleton across different classloaders.As
> each classloader will
> have its own singleton within its environment & this
> condition may not be
> acceptable for a pure sngleton.
>
> Regards
> Sanjiv
>
>
====================================================================
> Community Web Site (Core J2EE Patterns Catalog -
> Online Version):
> http://java.sun.com/blueprints/corej2eepatterns
> Getting Started (Beta Version):
>
>
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
> Get the book:
>
>
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
> List Archive:
>
>
http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing:
> email "signoff J2EEPATTERNS-INTEREST" to
listserv@(protected)


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

====================================================================
Community Web Site (Core J2EE Patterns Catalog - Online Version):
http://java.sun.com/blueprints/corej2eepatterns
Getting Started (Beta Version):
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Get the book:
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)

====================================================================
Community Web Site (Core J2EE Patterns Catalog - Online Version):
http://java.sun.com/blueprints/corej2eepatterns
Getting Started (Beta Version):
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Get the book:
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

          Visit us at http://www.cognizant.com

====================================================================
Community Web Site (Core J2EE Patterns Catalog - Online Version):
http://java.sun.com/blueprints/corej2eepatterns
Getting Started (Beta Version):
http://developer.java.sun.com/developer/technicalArticles/J2EE/patterns/
Get the book:
http://www.amazon.com/exec/obidos/ASIN/0130648841/corej2eepatte-20
List Archive:
http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing:
email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.