Community
Participate
Working Groups
Since ContextProvider#getSession() can be called by different threads, the unsynchronized lazy initialization pattern is dangerous at this place. This doesn't seem to be an issue at runtime, as the session is only initialized by RWTDelegate#createSessionStore(). However, instead of initializing the session lazily, we should introduce a dedicated init method that is called by RWTDelegate#createSessionStore().
LifeCycleServiceHandler#clearSessionStore() also (re-)initializes the session. Pleas take this into account when adressing this issue.
As of 2.1, the UISession (formerly SessionStore) is created and initialized in the RWTServlet at startup. In case of a session restart, a new UISession is created in LifeCycleServiceHandler. There is no lazy initialization anymore.
*** Bug 393552 has been marked as a duplicate of this bug. ***