lundi 30 mai 2016

Understanding Singleton objects in a web application

We have a Spring web application, where user's login in and place orders. There is a factory bean and its a singleton object. This factory bean holds user information. Also there will be multiple users logged into the web application at any point of time. When I read about singleton, it says that there will be only one object created per JVM. So I want to understand how the user information will be stored in this singleton object?




Aucun commentaire:

Enregistrer un commentaire