[ACCEPTED]-How do I force a spring container not to return a singleton instance of a bean?-spring
Accepted answer
You need to tell spring that you want a 2 prototype bean rather than a singleton bean
<bean id="beanA" class="misc.BeanClass" scope="prototype"/>
This 1 will get you a new instance with each request.
The default scope is singleton, but you can set 2 it to prototype, request, session, or global 1 session.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.