Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ServletContextListener vs HttpSessionListener
ServletContextListener vs HttpSessionListener [message #756077] Thu, 10 November 2011 19:27
DANIEL Missing name is currently offline DANIEL Missing nameFriend
Messages: 12
Registered: July 2011
Location: TORONTO
Junior Member
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>
Previous Topic:Default Table selection or hover
Next Topic:ServletContextListener vs HttpSessionListener
Goto Forum:
  


Current Time: Thu Mar 28 15:29:53 GMT 2024

Powered by FUDForum. Page generated in 0.02411 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top