Reputation: 12003
Can you rely on this scope and be sure that every time
1) a new session starts, the Spring bean will be initialized with default values
2) while session is kept alive, the current object will store its state during session life, will never be lost or corrupted and can always be got with [webappcontext].getBean ?
Upvotes: 0
Views: 490
Reputation: 403591
Both are guaranteed. Do you have reason to think otherwise?
Upvotes: 3