ServletContextListener vs HttpSessionListener [message #756077] |
Thu, 10 November 2011 19:27 |
|
I setup an http session listener by creating a new class that implements HttpSessionListener, and adding the line below to the web.xml
<listener>
<listener-class>com.my.class.UIHttpSessionListener</listener-class>
</listener>
But when I checked the FAQ on the RAP forum http://wiki.eclipse.org/RAP/FAQ under "How do I develop an RWT standalone application with RAP <= 1.4", I noticed that the example refers to the class name RWTServletContextListener which instead of implementing HttpSessionListener, it implements ServletContextListener.
Any idea why? I need to get control when a new session is created and a new session is destroyed, so I probably need HttpSessionListener. I cannot use org.eclipse.rwt.service.SessionStoreListener because its beforeDestroy method gives control also during refresh and we want control only when the session is really destroyed.
<listener>
<listener-class>org.eclipse.rwt.internal.engine.RWTServletContextListener</listener-class>
</listener>
|
|
|
Powered by
FUDForum. Page generated in 0.02411 seconds