This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Java in General
using singleton pattern in java
Joined: Jul 27, 2009
Dec 16, 2009 01:41:02
Can you give me the scenarios where Singleton
is used in Java?
Joined: Jan 28, 2008
Dec 16, 2009 01:57:00
you may need some values [which are common for the application ] from database on application startup time
Joined: Sep 10, 2009
Dec 16, 2009 02:28:07
When huge objects like Hibernate Session Factory is to be created only once and the same object is to be used throughout the application
Thanks and Regards,
Joined: Oct 13, 2005
Dec 16, 2009 08:22:21
Have a look at
and the links in it.
I agree. Here's the link:
subject: using singleton pattern in java
Static methods Vs "Instance Methods"
Limited no of Objects
Hibernate SessionFactory is initialized/read with every EJB call
cloning Singleton object
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014