Establishing Interportlet Communications
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
This manual contains two exercises that will step you through the procedures for establishing interportlet communications. One example uses a portal event handler (A Simple Example of Establishing IPC), while the other employs both a custom event handler and a page flow event handler (Establishing IPC by Using Custom and Page Flow Events). These examples will familiarize you with the workings of the Event Handler tool in the context of some common uses of that tool.
These examples are specific to interportlet communications within a single portal web application. They do not apply to federated portal applications. For information on establishing IPC with federated portals (such as WSRP), please refer to Establishing Interportlet Communications with Remote Portlets
This section includes information on the following topics:
A portal application is part of hierarchy of the components described in this section.
config.xml file
. application.xml
file, which is the standard J2EE deployment descriptor for enterprise applications. You can have more that one portal application per domain.In this section, you will create the domain and enterprise application that you will use in the exercises included in A Simple Example of Establishing IPC and Establishing IPC by Using Custom and Page Flow Events. In this exercise, the root directory for your domain should be BEA_HOME
\user_projects\domains
; for the applications and all of their components, it's BEA_HOME
\user_projects\applications
(where BEA_HOME
is the directory where you installed BEA WebLogic Platform)
. These are default directories that BEA WebLogic Platform creates upon installation.
To create a domain, do the following:
To create a portal application, do the following:
config.xml
.When the application is successfully created, it will appear in the application panel, as shown in Figure 2-1.
Figure 2-1 . Portal Application Created
The portal web application, or portal project, will contain the framework components required to build and render the portal. To create the portal web application, use the following procedure:
Figure 2-2 Creating a New Project
The New Project dialog box appears (Figure 2-3):
Figure 2-3 New Project Dialog Box
The project is updated (you will see a progress meter). Once the update is complete, the project appears as a directory in the file tree (Figure ).
Figure 2-4 Project Added to File Tree
Upon completion of the preceding procedures, you will have created a domain, an enterprise application, and a portal web application. The file tree in the left-hand pane of WebLogic Workshop should look like the example in Figure 2-1. These will be the domain and enterprise application you will use for the exercises in this document.
With a development environment completed, you next will complete the exercises described in their respective chapters:
In these exercises, you will create individual page flows, portlets, JSPs, and backing files to establish interportlet communications within the portal project. You will then add these portlets to a portal and test the application to ensure IPC has been achieved.
![]() ![]() |
![]() |
![]() |