31.1 Overview

Testing and debugging portlets are tasks that involve running portlets on a server, either on the test environment server within the workbench (local), or on a separate portal server (remote).

A WebSphere Portal Server Attach is a server type that allows Rational Application Developer tool to attach to a remote WebSphere Portal Server already started, so that you can run and debug a portlet application running on a remote WebSphere Portal system accessible through a network connection.

The sample development workstation and the remote Portal server are illustrated in Figure 31-1.

Figure 31-1 Remote Server Attach

In order to debug a portlet on a remote server, the following main task must be performed:

1. Prepare the WebSphere Portal server to work in debug mode.

2. Create a user on the WebSphere Portal server for the developer that will be performing debug tasks (optional).

3. Create a WebSphere Portal Server Attach on the Rational Application Developer workbench.

4. Run and debug a portlet on the remote WebSphere Portal server.

Figure 31-2 shows how portlets are debugged on a remote server.

Figure 31-2 Debugging a portlet on Remote Server Attach


Redbooks
ibm.com/redbooks