Hi, I have been building an application that requires me to Keep exactly one session scoped bean. But I also have another war file to be navigated to at the end of this application. I want to destroy the Session Scoped Bean's object at the time of navigation to the second war file(i.e. clear up the memory allocated to the session scoped object ).
How can I do this ???
Would System.gc() help???
I have doubts because System.gc() doesn't guarantee garbage collection upon calling the method!!!