Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Invoke @PreDestroy on ViewScoped ManagedBeans upon session expiration #905
When session expiration occurs it would be nice if the @PreDestroy of ViewScoped
Operating System: All
I will also investigate what it will take to make it work for the non-CDI based ones as well.
Thanks for bringing my attention to it.
Any opinion on that or insight into how the instances are referenced? I'm assuming that if view-scoped beans aren't eligible for GC when the session ends then they must be tied to application scope or to a ThreadLocal. Any other possibilities?