Sun ONE logo
Portal J2EE Sample Poll Application

 

Portal J2EE Sample Poll Application
 

This document describes how to utilize the Portal J2EE sample Poll application in conjunction with Sun ONE Application Server version 7.

This sample application document contains the following sections:

Overview 

The Poll sample is a simple application that demonstrates a custom Portal Server JSP provider that access a stateless session EJB which allows the portal user to vote on a poll question. Starting with the Portal 6.1, custom portal providers can gain access to J2EE features such as JNDI, EJB, JDBC and JMS that are only available in J2EE containers. This allows Portal Server to provide content generated from any J2EE components and resources  that are made available by the underlying J2EE compliant platform.

This document assumes that the Portal Server 6.1 release is already deployed on Sun ONE Application Server 7.0 and that you have selected the default installation options with the sample desktop. You must also have superuser(root) privileges for the system where Portal Server is deployed. 

A snapshot of the sample portal desktop with the poll sample is shown below. Note the channel titled "J2EE Sample - Poll" displays the current poll question.
 

Pollt Sample Snapshot


Once the user has voted on the poll, the vote button in the channel will be changed to "Change Vote" , from then on till the poll is changed the user can only change the previous vote and this prevents multiple vote from the same user. The channel looks like the following:

Poll Channel

The user can view the results either by clicking the "View Results" button or the results page is automatically displayed once the user votes. The desktop screen shot is given below


poll channel results


Step by Step Deployment Guide 



Property Description Default Value
com.sun.aas.javaRoot The JDK directory. For default Sun ONE application server v7.0, this is /usr/j2se. However, Portal Server MAS installation will install JDK 1.4.1_01 and make modifications to the application server's configuration file to use this jdk. /usr/java_1.4.1_01
admin.host This is the hostname where the Sun ONE application server v7.0 admin server is running.
com.sun.aas.imqLib This is the directory where Sun ONE application server v7.0 finds the implementation of JMS provider. /usr/share/lib/imq
admin.port This is the port number where the Sun ONE application server v7.0 admin server is listening to 4848
com.sun.aas.installRoot The base directory where Sun ONE application server v7.0 is installed into /opt/SUNWappserver7
admin.user The user id of the administrator account for the Sun ONE application server v7.0 admin server admin
sunone.instance The server instance name where portal server is deployed server1
com.sun.aas.webServicesLib The directory where web services library files reside /usr/share/lib
com.sun.aas.pointbaseRoot The base directory where pointbase is installed into /opt/SUNWappserver7/pointbase
com.sun.dsame.installRoot
The base directory where Identity Server is installed into
/opt/SUNWam
com.sun.portal.installRoot
The base directory where Portal Server is installed into
/opt/SUNWps
com.sun.portal.deployuri The deployment uri used when deploying portal server on Sun ONE application server v7.0 /portal
com.sun.portal.websrcRoot The portal server open WAR file root directory
/opt/SUNWps/web-src
com.sun.portal.provider.classBaseDir The base directory where portal provider class files are deployed /etc/opt/SUNWps/desktop/classes
com.sun.portal.templateBaseDir The base directory where provider templates and JSP are deployed /etc/opt/SUNWps/desktop
com.sun.portal.desktopType The portal server deployed desktop type default
sunone.instance.port The port number where the Sun ONE application server instance is listening to 80

Troubleshooting 



Copyright © 2002 Sun Microsystems, Inc. All rights reserved. 
Last Updated February 14, 2003