110 IBM WebSphere Everyplace Access V5, Volume IV: Advanced Topics
Subscription manager implementation (SubscriptionManagerImpl.java), the
utility class for managing subscriptions which implements the subscription
manager interface.
In general, to develop a new subscription portlet, you must create the following
files:
A class named <My_subscription>SubscriptionBaseController.class that
extends the subscription base controller class.
A class named <My_subscription>SubscriptionBean.class that extends of
subscription bean class.
A JavaServer Pages (JSP) file named
<My_subscription>SubscriptionConfig.jsp that is used to add or to modify a
subscription.
A JSP file named <My_subscription>SubscriptionView.jsp that is used to list
current subscriptions.
A JPS file named DeliveryChannelOrdering.jsp that is used to change the
delivery channels order of the subscription.
XML files for registering the subscription portlet:
– web.xml, for registering the portlet as a Web application with WebSphere
Application Server.
– portlet.xml, for registering the portlet as portlet with the WebSphere Portal
Server.
To use the MonitoringNotify subscription portlet as a base to create a
subscription portlet project, follow these steps:
1. Create a Portlet Application Project.
a. Open the IBM WebSphere Studio Site Developer and select File
→ New
→ Project.
Note: The prefix <My_subscription> is the name that identifies the
subscription, for example Stocks, Weather, and so forth.
Note: The easiest way to develop a new subscription portlet is to base it in an
existing subscription portlet. We use the MonitoringNotify portlet that is
provided in this book to explain how subscription portlets work. This
subscription portlet is ready to work for the sample scenario that is defined in
this chapter. In addition, we include notes to indicate the changes you need to
make if you use the MonitoringNotify portlet as a base to develop your own
subscription portlets.