We have a Spring web application, where users login in and place orders. There is a factory bean and itβs 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?