I have a session scoped bean that I have put in my applicationContext. Currently when a user logs in I grab some information (userNumber, companyId, ...). I then call appContext.getBean("myBean") to get an instance of this bean and then populate it. From then on I just assume that it is populated throughout my app (which works fine). What I don't understand is what if I had a session scoped bean that wasn't initialized at the beginning of a session. What is a typical way of initializing it? Everytime I call appContext.getBean("myBean") would I have to make sure it is initialized and if it isn't do it then? I just want to clear this up in my head.
Announcement Announcement Module
No announcement yet.