  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Singleton | Singleton 2003-08-08 - By PavanKumar Keely
Back 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)> wrote: > 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 (See http://tte-20.ora-code.com) > 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 (See http://tte-20.ora-code.com) List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |