File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Prototyping vs. singleton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Prototyping vs. singleton" Watch "Prototyping vs. singleton" New topic

Prototyping vs. singleton

sarma kiran
Ranch Hand

Joined: Jul 17, 2008
Posts: 30

Can any one tell me the difference between Prototyping vs. singleton for the bean?

thanks in advance
Sandeep Awasthi
Ranch Hand

Joined: Oct 23, 2003
Posts: 597
Prototype scope creates new instance for new request, while singleton scope shares one instance among the requests.

sarma kiran
Ranch Hand

Joined: Jul 17, 2008
Posts: 30

Thanks sandeep.
Don't get me started about those stupid light bulbs.
subject: Prototyping vs. singleton
Similar Threads
Runtime.getRuntime( ).exec( command ); Win vs Unix
struts vs spring framework
Bean Scope: Prototype Vs Singleton
Static methods Vs "Instance Methods"
Singleton Vs lazy Singleton