A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Joined: Jul 15, 2002
Aug 26, 2003 08:24:00
How do i implement a Singleton in a
application(for server side classes)?
Joined: Jan 23, 2002
Aug 26, 2003 08:34:00
This is a common question to which there is no standard answer as far as I know. The problem is that the application may reside in a clustered environment made of several JVMs.
Here are some resources related to the subject:
J2EE Singleton pattern at TheServerSide.com
JBoss clustering / singleton services
J2EE singleton by javaspecialists.co.za
Effective Unit Testing
Gustavo Adolpho Bonesso
Joined: May 11, 2002
Aug 26, 2003 08:56:00
I agree with Lasse, but if you are in a enviroment with a single JVM, the Singleton
is usefull to make DAO�s (Data Access Objects).
Gustavo Adolpho Bonesso<br />SCJP1.4
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Singleton Pattern
Hashtable's put method problem in locking
Creating a utility managed bean, to move common code and use from different beans?
Tech Word Game
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015