Creating a Portal Application and Portal Web Project

To create the necessary resources for portal development, you must do one of two things:

Following are the procedures for each option.

Option 1: To create new portal application and add a Portal Web project to it

Use this procedure to create a new portal application.

You do not need to perform these steps if you are developing on a shared domain and the portal application has already been created and stored in a version-control system. Simply synchronize to the current version of the domain to put the portal application on your machine.

  1. If you have not yet created a portal domain on your development machine, create one with the Configuration Wizard. For instructions, see the Overview of Platform Configuration on the BEA's e-docs Web site.

    Performing this step ensures you have a server (config.xml) for your portal application to use, as described later in this procedure.
  2. Create a new portal application. In WebLogic Workshop Platform Edition, choose File -->New -->Application.
  3. In the New Application window, select Portal Application in the right pane.
  4. In the Directory field, click Browse to set the location of the new application. The application will be created in a subdirectory of the directory you select.
  5. Make sure the Name field contains the name of the application. This name will be the application directory.
  6. In the Server field, click Browse and select the config.xml file for the server (domain) you want to use.

    The config.xml file is in the portal domain directory you created.
  7. Click Create. The application directory appears in the Application window. The application contains the WebLogic Administration Portal (contained in Modules/adminPortal.war), a datasync directory (data) for interaction management development, and application-level EJBs and APIs.
  8. Create a portal Web project for your application. Right-click the <app_name> directory in the Application window, and choose New -->Project.
  9. In the New Project window, select Portal Web Project in the right pane.
  10. In the Project name field, enter the name for the portal Web project. This will be the name of a Web application directory.
  11. Click Create. The project folder appears in the Application window. The portal Web project contains WebLogic Portal JSP tags, Web-application-level APIs, and default portal framework files.
  12. If you have any external projects or files you want to include in your portal application, perform any of the following steps:

    You now have the resources and directories for developing personalized applications and creating portals to surface applications.

  13. Start your development server. In WebLogic Workshop, choose Tools-->WebLogic Server-->Start WebLogic Server. The server you assigned to your application in the previous steps starts. All your work is deployed automatically on your machine as you develop.

Option 2: To install portal in an existing application and add a Portal Web project to it

Use this procedure to add portal services to an existing application.

You do not need to perform these steps if you are developing on a shared domain and the portal-enabled application has already been created and stored in a version-control system. Simply synchronize to the current version of the domain to put the portal application on your machine.

  1. In WebLogic Workshop Platform Edition, open the application in which you want to install portal.
  2. In the Application window, right-click the <app_name> directory and choose Install-->Portal. WebLogic Workshop adds the WebLogic Administration Portal (contained in Modules/adminPortal.war), a datasync directory (data) for interaction management development, and application-level EJBs and APIs.
  3. Create a portal Web project for your application. Right-click the <app_name> directory in the Application window, and choose New-->Project.
  4. In the New Project window, select Portal Web Project in the right pane.
  5. In the Project name field, enter the name for the portal Web project. This will be the name of a Web application directory.
  6. Click Create. The project folder appears in the Application window. The portal Web project contains WebLogic Portal JSP tags, Web-application-level APIs, and default portal framework files.
  7. If you have any external projects or files you want to include in your application, perform any of the following steps:

    You now have the resources and directories for developing personalized applications and creating portals to surface applications.

  8. Start your development server if it is not already running. In WebLogic Workshop, choose Tools-->WebLogic Server-->Start WebLogic Server. All your work is deployed automatically on your machine as you develop.

Related Topics

Portal Samples

Developing Portal Applications

How Do I: Create a New Application?

The WebLogic Workshop Development Environment