Spring beans instantiated by spring container are singleton beans by default...datasource, sessionFactory instantiated through spring xml are all singletons When i use @Controller, @Repository, @Service, objects are created.
If only one object is created by that name, how simultaneous users sending requests to a spring MVC application are handled? Are they handled by the same objects
Are those requests controlled/serviced by spring controller/service singleton objects? If yes then it could lead to mess i guess...
As a parallel in STRUTS2, there is value stack which creates separate objects. Is there some concept like that in SPRING MVC/Annotation???
This sounds very basic, but so far as i have searched spring website/stackoverflow, i have not come across something which explains this aspect.
Please throw some light on this..