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.
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.
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.
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.
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.
Create a channel for the Session Counter portlet.
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.
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.