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.

8.8.1. HttpSessionBindingListener

Object that require notification when being added or removed from the portlet session should implement this interface. This interface defines two methods, valueBound and valueUnbound. Both of these methods ...

Get IBM Rational Application Developer V6 Portlet Application Development and Portal Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.