| Last Updated: | August 10, 2003 |
| Status: | Production |
| Version: | PDK Release 2, (9.0.2 and later) |
Now that you have successfully installed the PDK-Java Framework and samples, you may want to install and view the Subscriber ID portlet sample. The Subscriber ID portlet demonstrates how to use OracleAS Portal and Web portlets for portal-based subscription billing.
From an application stand point, you may build a Web portlet that companies may register for and use within OracleAS Portal. They may register to use your Web portlet by phone or website and in return you provide them with a URL and a Subscriber Key (also known as "Provider Key"). You will begin billing them once you receive confirmation that they have registered your Web provider with their OracleAS Portal. At registration, they provide the "Subscription Key" you gave them within their OracleAS Portal, and this allows your Web portlet to associate their portal instance and provider ID with the Subscriber ID given. At this point you know which customer to bill for your Web portlet services.
The Subscriber ID portlet sample is demonstrated in two parts. When you install the PDK-Java Framework and samples, the main sample provider includes a Subscriber ID registration form. Here you register to use the Subscriber ID portlet by supplying your Name and Company information. In return, the portlet provides a case sensitive Subscriber key to use to register this Subscriber ID Provider.
This document is an installation and configuration guide to the Subscriber ID sample provider. One important note when creating a subscriber provider is that you must subclass ProviderInstance and override init(), register(), deregister(), and getSubscriber(). The provider must persist the subscription key passed during registration of an instance, so that it is available in all subsequent calls to that instance, and must remember to remove this persisted information when the instance is deregistered.
The complete source code for this provider is included in the PDK-Java distribution. The relevant files are:
The provider is pre-configured within jpdk.ear, with a service ID of urn:subscriber.
You can test that you have setup the sample properly using OracleAS.
Execute the sample from your OracleAS HTTP Server, i.e. the listener where you configured your sample.
For example: http://myserver.mydomain.com:port/jpdk/providers/subscriber
Review the content of the test page displayed. If you did not see the test page, verify that you can execute standard servlets using OracleAS.
After testing the provider on OracleAS HTTP Server, you must now register the provider with OracleAS Portal before adding the Subscriber ID portlet to your page.
Once registered, the sample Subscriber ID portlet is displayed in the Portlet Repository.
Please refer to OracleAS Portal online documentation for more information on adding portlets to a page.
You have now successfully installed and setup the Subscriber ID Sample.
| Revision History: |
|
| Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065, USA http://www.oracle.com/ |
Worldwide Inquiries: 1-800-ORACLE1 Fax 650.506.7200 |
Copyright and Corporate Info |