Create the Personalization content resource classes and content spot

View the steps to create the Personalization content resource classes and content spot using IBMRationalApplication Developer.

  1. In the Project Explorer tab in Rational Application Developer, right click on the Pers_Offers project and choose New -> Other.

  2. From the New window, select Portal -> Personalization -> Content or User Resource.

  3. Click Next.

  4. Select the following options by clicking the appropriate radio button:

    1. SQL

    2. Web Content

  5. Select Create a new connection and click Next.

  6. Enter the following values:

    1. From the JDBC driver drop-down list, select Derby Embedded JDBC Driver.

    2. From the Database location field, click Browse. Navigate to and select WP_PROFILE/PortalServer/derby/pzndemo_db/

    3. From the Class location field, click Browse. Navigate to and select WAS_HOME/derby/lib/derby.jar

  7. Click Next.

      The personalization resource wizard opens.

  8. Expand PZNDEMO.

  9. On the Tables tab, highlight PZN_OFFERS by single clicking on it. Click the arrow button pointing to the right to select the table. Click Primary Table to mark it as the primary table.

  10. Select the Columns tab.

  11. On the Columns tab, move all columns to the right by clicking the double arrow button. Notice the primary key is the column Offer_ID.

  12. Click the Mappings tab.

  13. On the Mappings tab, select Customertype and click Populate.

  14. Click the Select buttons and expand PZNDEMO -> PZN_OFFERS to select CUSTOMERTYPE for the Description and Value fields. Click OK.

  15. Click the Deployment tab.

  16. On the Deployment tab, change the datasource to jdbc/pzndemo. This datasource is defined in WAS by the Personalization demo program installation.

  17. Click Next.

  18. Set the package name as pers_offers. Select Generate a Content Spot for this resource. Select Include schema names in the generated Resource Runtime Manager.

  19. Click Finish.

You can now see the new JAVA classes in project:

You can now see the new JAVA classes in project, and create the Personalization user resource classes and content spot.


Parent

Develop a personalized portlet


Previous

Create the JSP file in Rational Application Developer


Next topic

Create the Personalization user resource classes and content spot

 


+

Search Tips   |   Advanced Search