O'Reilly logo

IBM Rational Application Developer V6 Portlet Application Development and Portal Tools by Ryan Wilson, Gianfranco Rutigliano, George Kroner, Belen Gonzalez, Karla Galvan, Cristiano Cesario, Juan R. Rodriguez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required