> In our WebSession subclass we manage some resources which need to be > cleaned up when the session goes away (because of timeout, etc). Is > there a recommended way to call a "shutdown()" method on our session > class? I have seen WebApplication.sessionDestroyed(String), but I'm not > sure how to get the wicket session from there (since we don't > necessarily have an active request at that time). Of course, I could > implement my own session store or something like that, but that approach > seems to be a bit hackish.
As long as you are putting the Wicket Session object in your HttpSession (like the default session stores do) I think you should be able to just let your session class inplement HttpSessionBindingListener and react on valueUnbound. Can you try that and let the list know whether that worked for you? Eelco --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
