This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Prototyping vs. singleton" Watch "Prototyping vs. singleton" New topic
Author

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.


Sandeep
sarma kiran
Ranch Hand

Joined: Jul 17, 2008
Posts: 30

Thanks sandeep.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Prototyping vs. singleton