Click Next to display the Define Connection page

Creating Java Portlets 6-45 To access a sample provider test page, you must use the URL and service ID. An example of a URL for a sample provider is as follows: http:myserver.com:8888myj2eeportlet1providerssample where, http:myserver.com:8888myj2eeportlet1providers is the URL value, and sample is the service ID.

14. Click Finish. You should see a Registration Confirmation page.

15. Your portlet should now be available for adding to pages just as any other portlet in the Portlet Repository. To add your portlet to a page, follow the instructions in the Oracle Fusion Middleware Users Guide for Oracle Portal.

6.6 Setting up the WSRP and JPDK Applications in Oracle Portal

This section describes steps to manually configure the WSRP and JPDK application and deploying them on the Oracle WebLogic Server. This section includes the following subsections: ■ Configuring and Deploying the WSRP ■ Configuring and Deploying the JPDK

6.6.1 Configuring and Deploying the WSRP

To configure the WSRP, complete the following steps: ■ Creating WSRP Managed Server ■ Adding the Required Libraries to the WSRP Managed Server ■ Starting the WSRP Managed Server ■ Configuring the Datasource ■ Extending the Existing WebLogic Domain ■ Adding wsm-pm to the WSRP Managed Server ■ Deploying the Sample EAR File ■ Configuring Oracle Web Cache ■ Registering and Viewing Your Portlet Creating WSRP Managed Server You can create a WebLogic Managed Server on an existing domain using the Oracle WebLogic Server Administration Console to create the managed server instance and Note: PDK-Java enables you to deploy multiple providers under a single adapter servlet. The providers are identified by the Service ID field. When you deploy a new provider, you must assign a service identifier to the provider and use that service identifier when creating your provider WAR file. The service identifier is used to look up a file called service_id.properties, which defines the characteristics of the provider, such as whether to display its test page. For more information about service identifiers, refer to Section D.1.2, Service Identifiers . 6-46 Oracle Fusion Middleware Developers Guide for Oracle Portal provision the shared libraries required to run a custom Oracle Portal application. To create the WSRP Managed Server, complete the following steps: 1. Log on to the Oracle WebLogic Server Administration Console. 2. If you have not already done so, in the Change Center of the Administration Console, click Lock Edit.

3. In the Domain Structure tree, expand Environment, and then select Servers.

The Summary of Servers page is displayed. 4. Click New. The Create a New Server page is displayed. 5. In the Create a New Server page enter the following information: ■ Server Name : Enter the name of the server, for example WLS_WSRP. ■ Server Listen Port : Enter the port number from which you want to access the server instance. For example, 9003. ■ Select the No, this is a stand-alone server radio button. 6. Click Finish. 7. In the Summary of Servers page, click on the Server WLS_WSRP you have created.

8. Select your machine name from the Machine drop-down list and click Save.

9. Click Activate Changes.

Adding the Required Libraries to the WSRP Managed Server For a portlet producer application, you must deploy the following libraries to the new Managed Server or cluster: ■ oracle.portlet-producer.wsrp11.1.1,11.1.1 ■ oracle.portlet-producer.jpdk11.1.1,11.1.1 ■ DMS Application 11.1.1.1.0 ■ oracle.jrf.system.filter ■ oracle.jsp.next11.1.1,11.1.1 ■ oracle.wsm.seedpolicies11.1.1,11.1.1 ■ wsil-wls To add the libraries, complete the following steps:

1. Click Lock Edit.

2. In the Domain Structure tree, select Deployments.

The Summary of Deployments page is displayed. 3. Select oracle.portlet-producer.wsrp11.1.1,11.1.1 from the Deployments table. The Settings for oracle.portlet-producer.wsrp11.1.1,11.1.1 page is displayed.