8.6. JSR 168 Portlet life cycle

The life cycle of a portlet closely resembles the life cycle of a servlet. There are, however, some differences. The following section will describe the life cycle of a portlet from beginning to end.

WebSphere portal server will mange the life cycle of the portlet by using the methods of the Portlet class.

8.6.1. Instantiation

The portlet will be instantiated during startup. The portlet will be loaded using the same classloading that is used for loading the Web application.

8.6.2. Initialization

The init() method of the Portlet class is called when the portlet is first requested. Portal will pass a unique Portletconfig object to the init method. During initialization any one time setup for the portlet should ...

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.