Sun Java System Reference Configuration Series: Portal Service on Application Server Cluster

ProcedureTo Set Up Session Failover for a Portlet

This procedure uses an example Session Counter portlet to demonstrate how to set up portlet session failover. Using this example, the procedure describes how to deploy a portlet into the pstestPortlet portal, enable high availability for the portlet, and create a desktop channel for the portlet.

  1. Download the Session Counter portlet from the Open Portal Portlet Repository site:

    https://portlet-repository.dev.java.net/public/Download.html

    The sessioncounter.war file is downloaded.

  2. Deploy the Session Counter portlet to DeveloperSample in the pstestPortal portal.

    # /opt/SUNWportal/bin/psadmin deploy-portlet -u amadmin -d o=DeveloperSample,dc=pstest,dc=com -p pstestPortal sessioncounter.war

    When prompted, type the access-manager-admin-password.

  3. Enable high availability for the Session Counter portlet.

    # /opt/SUNWappserver/sbin/asadmin set --user admin "domain.applications.web-module.sessioncounter.availability-enabled=true"

    When prompted, type the app-server-admin-password.

  4. Enable high availability for the Portal web application.

    # /opt/SUNWappserver/sbin/asadmin set --user admin "domain.applications.web-module.portal.availability-enabled=true"

    When prompted, type the app-server-admin-password.

  5. Create a channel for the Session Counter portlet.

    1. Create a display profile for the Session Counter portlet.

      Save the display profile document in Example Display Profile: Session Counter Portlet to /tmp/developer-dp.xml.

    2. Add the display profile to the developer user.

      # /opt/SUNWportal/bin/psadmin add-display-profile -u amadmin -d uid=developer,ou=People,o=DeveloperSample,dc=pstest,dc=com -p pstestPortal /tmp/developer-dp.xml

      When prompted, type the access-manager-admin-password.