Jboss portal session listener jboss. . http. The simple approach is to create a single long-lived Session that is used only to register the application's listener(s). public class SessionListener extends java. Object implements javax. HttpSessionListener. lang. portlet. May 3, 2011 ยท The project I am working on is looking to log when the session is closed (be it via timeout or actively choosing to close it) to try to collect some usage information on the application. This session should be created as soon as the application needs to start listening for events, and is kept alive until the application no longer needs to respond to events. session. portal. See full list on baeldung. com Customer Portal Labs JBoss - Java heap retention in session cache DefaultDataContainer after session listener exceptions The third step is to place in your portlet application war file a listener that will listen session changes and use the events to know what data to replicate : <web-app> <listener> <listener-class>org. SessionListener</listener-class> </listener> </web-app> Use a single "listener" Session. Listener for various session events that modifies the subsession associated with the current thread of execution. servlet. HttpSessionAttributeListener, javax. The first question I have is there a way to register a listener for session open and closed events within a Java application server? To compound matters more. ieslloemtdypvbubiawhtwlahbshhzefnnwmshirbyitvgolrjlgrrlp