A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Singleton Pattern
Hashtable's put method problem in locking
Tech Word Game
Creating a utility managed bean, to move common code and use from different beans?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013