4.7. Portlet life cycle

This section will explain the portlet life cycle and when certain objects become available. The basic life cycle of each portlet is displayed in Figure 4-6. Though the login and logout methods are part of SessionListener interface, they are covered here since they are usually included in normal portlet implementations. Other listeners are covered in 4.8, “Listeners” on page 137.

Figure 4-6. Basic portlet life cycle

Much like the Servlet Container, the Portlet Container manages the portlet life cycle along with providing services to the portlets running in the container.

The portlet container loads and instantiates the ...

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.