I don't know why you want to access the deployment descriptor, but this is
how I did it (UsageStatistics is a selfmade class):

In WebApplication subclass:

    @Override
    protected ISessionStore newSessionStore() {
        return new SecondLevelCacheSessionStore(this, new DiskPageStore()){
            @Override
            protected void onUnbind(String sessionId) {
                getUsageStatistics().registerSessionDestroyed(sessionId);
                super.onUnbind(sessionId);
            }
            @Override
            protected void onBind(Request request, Session newSession) {
                super.onBind(request, newSession);
                getUsageStatistics().registerNewSession((WebRequest)request,
(JobIQSession)newSession);
            }
        };
    }

You van use
((WebRequest)request).getHttpServletRequest().getSession().getMaxInactiveInterval()
to get the timeout interval

2009/8/20 David Leangen <[email protected]>

>
>
>  What's the best way to get notified of a session timeout event from within
>>> a
>>> Wicket App when I don't have access to the deployment descriptor?
>>>
>>
>  I think overriding WebApplication#sessionDestroyed should do the trick.
>>
>
> Perfect! Thank you.
>
>


-- 
Martijn Lindhout
* 06 - 18 47 25 29
* [email protected]
* http://www.jointeffort.nl

Reply via email to