Rogue Wave JViews TGO Sample: JSF Integration - Monitoring


Description

This sample shows how to create a web-based Operations Support System (OSS) console using the JViews TGO and MyFaces faces component sets.

How to Use the Sample

Installing the Thin-Client Sample

The sample contains a WAR file (Web Archive) that allows you to easily install the sample on any server that supports the Servlet API 2.1 or later. For your convenience, the WAR will be copied to the Tomcat web server that is supplied with the Rogue Wave JViews installation when you start the server using the supplied scripts. Tomcat is the official reference implementation of the Servlet and JSP specifications. If you are already using an up-to-date Web or application server, there is a good chance that it already has everything you need. The sample can also be deployed to WebSphere Application Server (WAS).

Running the Sample Using Tomcat

If you intend to use the Tomcat Web server provided with this installation, follow these instructions to start the server: Running the Server-Side Samples. The scripts to start the server can be found in the tools/tomcat-jsf directory.
Note: if you are running on Windows then you will find menu items in the Windows "start" menu to start and stop the Tomcat server.

Once the server is running, you can see the sample by opening the following page:

Running the Sample Using WebSphere Application Server

In addition to the instructions provided for using Tomcat, the samples can be viewed on WebSphere Application Server. Follow the instructions: Running the Server-Side Samples and use the scripts to start the server and deploy the sample.

Once the server is running, you can see the sample by opening the following page: http://localhost:9443/jsf-integration-monitoring
The WAS administrative console can be used to verify or modify server settings: http://localhost:9043/ibm/console/

Note: the WAS server can start on a range of port numbers, therefore the value is not guaranteed to remain the same. The scripts provided with the samples can be used to obtain the port numbers used by the Admin Console and by the deployed Web applications. To retrieve a list of all the WAS port numbers, run the command line instruction: ant -f build_was.xml ws.list.ports

Topics Covered

Detailed Description

The sample contains two main areas:

  1. The Application Controls Area
    This area has the controls that drive the entire application. In this area you can control:
    • Page Refresh
      • Page Refresh Rate
        Indicates whether or not the page will refresh itself and if so how often.
      • Refresh Page
        Requests a page refresh; this is the recommended way to refresh the page (as opposed to F5 or CTRL+R).
    • Alarm Generation
      • Alarm Generation Rate
        Indicates whether or not alarms are to be automatically generated and if so how often.
      • Remove All
        Requests that all alarms generated be removed (deleted), typically to start fresh.

  2. The Application Area
    This area has the controls that provide the main business use cases of the sample. This area is composed of three main modules:
    • Network Module
      This module provides Network Management functionality and represents the network in a geo-positioned manner.
    • Inventory Module
      This module provides Inventory Management functionality and displays the details of network equipment at a fine level.
    • Service Module
      This module provides Service Management functionality and represents the different service-related business entities graphically to aid in service-to-equipment correlation.
  3. Each one of the modules has the following main areas:
The following diagrams provide insights on how the sample was designed:

This diagram describes the major parts of the web client design. The web client refers to the monitoring.web.SampleContext which serves as the hub for all resources that are needed and available for the sample. The monitoring.web.SampleContext provides access to three major types:

This diagram shows the main types used to integrate a backend alarm monitoring system in this sample. In the case of this sample, the alarm monitoring system is a simulated system that is activated, deactivated and called through the use of an alarm generator that is available through the web client UI.

The monitoring.web.SampleContext contains references to the two main types in this integration/alarm monitoring simulation scheme:

Installation Directory

The JSF Integration - Monitoring sample is installed here.

Classes Involved

Source Files

Copyright © Rogue Wave Software, Inc. 1997, 2015. All rights reserved. Legal terms.