A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: using singleton pattern in java
Limited no of Objects
Hibernate SessionFactory is initialized/read with every EJB call
cloning Singleton object
Static methods Vs "Instance Methods"
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014