I have implemented a HttpSessionListener and have access to the session created by the user. This session differs from the session created by SEAM:
Session 1: org.apache.catalina.session.StandardSessionFacade@7f8dd0 Session 2 (Seam): org.jboss.seam.web.Session@bao9bb
This is not a problem, I guess. When I destroy Session 1, then automatically Session 2 is destroyed ! (Am I right?)
The point is, now I have two listeners in web.xml:
<listener> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> </listener> <listener> <listener-class>MyServletListener</listener-class> </listener>
That is noisy, as I would like to have controll over all sessions via the SeamListener. Is that possible? Is there any other way, to achieve this in Seam (EJB)?
The problem is, I can invalidate the session via
but SEAM complains it and says:
Please end the HttpSession via
Any best practices?