Skip navigation.

Establishing Interportlet Communications

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

Setting Up the Examples

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:

 


Parts of a Portal Application

A portal application is part of hierarchy of the components described in this section.

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.

 


Step 1: Create the Domain

To create a domain, do the following:

  1. Launch WebLogic Workshop.
  2. Open the Tools menu and select WebLogic Server>Configuration Wizard.
  3. The Configuration Wizard launches.

  4. Follow the prompts using the value specified in Table 2-1. Click Next when you are finished with each dialog box.
  5. Table 2-1 Configuration Wizard Values

    On...

    Select or Enter...

    Create or Extend a Configuration

    Create a new WebLogic Configuration

    Select a Configuration Template

    Basic WebLogic Portal Domain

    Choose Express or Custom Configuration

    Express

    Configure Administrative Username and Password

    Username: weblogic

    Password: weblogic

    Confirm Password: weblogic

    Configure Server Start Mode and Java SDK

    JRockit SDK 1.4.2_05

    Create WebLogic Configuration

    Configuration Name: ipcDomain


     
  6. Once the domain is created, click Done.

 


Step 2: Create the Enterprise Application

To create a portal application, do the following:

  1. Open the File menu and select New>Application...
  2. The New Application dialog box appears.

  3. Select Portal Application and do the following:
  4. Click Create.
  5. 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

    . Portal Application Created


     

 


Step 3: Create the Portal Web Application (Project)

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:

  1. In the file tree, right-click the application name (ipcTest) and select New>Project, as shown in Figure 2-2.
  2. Figure 2-2 Creating a New Project

    Creating a New Project


     

    The New Project dialog box appears (Figure 2-3):

    Figure 2-3 New Project Dialog Box

    New Project Dialog Box


     
  3. In the left pane of the dialog box, select Portal and, in Filename, enter ipcTest. Click Create.
  4. 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

    Project Added to File Tree


     

 


Summary

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.

 


Next Steps

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.

 

Skip navigation bar  Back to Top Previous Next