8.8 Listeners

JSR 168 portlets do not define any portlet listeners, instead they use servlet listeners. Servlet listeners should be implemented in the portlet environment like they are in the servlet environment. The listeners should be added in the web.xml or to any object that needs to be informed when being added or removed from the session should implement HttpSessionBindingListener. Detailed description of servlet listeners are outside the scope of this book, but we will briefly describe them here.


Redbooks
ibm.com/redbooks