WSRPv2m4preview < OpenPortal < TWiki

TWiki . OpenPortal . WSRPv2m4preview

OpenPortal? WSRP Project : WSRP version 2.0 milestone 4 - Feature Preview Document

If you have not installed the WSRP version 2.0 milestone 4 binary, please follow the instructions available in the glassfish install guide or tomcat install guide before you proceed.


A. Whats new in Milestone 4 :

The WSRP v2 milestone 4 previews the following features

  1. WSRP 2.0 CC/PP Capability
  2. WSRP 2.0 Leasing
    1. Registration Leasing
  3. Interoperabilty Fixes

This document allows users to use and experiment with the above implemented by means of providing samples or instructions.

Note: WSRP version 2.0 milestone 4 binary is tested and works only with Portlet Container 2.0 - 16 April 2008 nightly binary only.


B. WSRP CC/PP Profile :

CC/PP (Composite Capabilities/Preferences Profiles) , a W3C? standard, provides a uniform way for devices to transmit a profile of their characteristics to other devices/systems.

WSRP V2 milestone 4 has implementation of CCPP feature specified by WSRP V2 in consumer and producer. Currently there are four protocols defined for CC/PP profiles. The consumer module supports only following 2 broadly used protocols :

  1. CC/PP Exchange Protocol [CCPPex]
  2. Wireless Profiled HTTP [W-HTTP]

The consumer module processes CCPP headers sent by the user agent and populates profile data in the CCPPHeaders section of the ClientData? stub.

The producer modules obtains CCPPHeaders information and set it in the HttpRequest? wrapper according to the standard defined by CC/PP Exchange Protocol. This http request wrapper is being passed to the portlet container during markup/resource serve call. The portlet container then uses these headers to generate javax.ccpp.Profile object.

Note : The creation of javax.ccpp.Profile object in OSPC is not implemented fully (work in progress) and therefore, OSPC is currently returning a dummy object for javax.ccpp.Profile interface.


C. Leasing :

The WSRP 2.0 spec defines Leasing as the scheduled destruction of an item after a specified time duration. In the current WSRP 2.0 implementation, leasing is implemented using the 'lifetime' parameter in the various interfaces such as Registration, PortletManagement?, ServiceDescription?.

Registration Leasing

1. When a consumer registration is created for a V2 producer, an optional parameter called Lifetime could be specified. It is specified as the combination of the no of days, hours and minutes for which the registration is valid. By default, the 'Lifetime Supplied' checkbox is unchecked. On checking it, the Valid days, hours and minutes text boxes appear. The values entered are converted to the termination time for the consumer registration(using the current time).

2. On viewing the consumer details, the lifetime parameter (as in termination time - time till the registration is valid)is also displayed along with the other details

3. A portlet window is created for the registered consumer that is leased. On navigating to the WSRP tab, if the system current time is after the termination time specified for the consumer registration, an error is thrown and the remote portlet is not rendered. If the system current time is before the scheduled termination time, the remote portlet is rendered correctly.


D. Sample portlet binaries :

Here is the link to the sample portlets, The portlets demonstrate the following WSRP version 2.0 features


E. Issues Fixed :

Query resolved issues


F. Related documents:

  1. WSRP installation on Glassfish
  2. WSRP installation on Tomcat
  3. WSRP User Guide
  4. Sample Portlets from OpenPortal Portlet Repository

-- Main.t_rajesh - 01 Apr 2008

----- Revision r7 - 17 Apr 2008 - 07:35:20 - Main.t_rajesh