Entering content frame

Function documentation Using a Programmatic Interface to Create and Install Monitors Dynamically Locate the document in its SAP Library structure

Use

The monitor-configuration.xml is not the only way to create configuration groups and install monitors. You can also create configuration groups and install summary nodes, object nodes and all kinds of monitors directly from a programmatic interface called MonitorContext. You can find this interface in the monitor_api.jar.

In that case, all information provided by monitor-configuration.xml is passed to the interface methods as input parameters.

Prerequisites

To use this function you must first look up the MonitorContext. To do this, proceed as follows:

...

                            a.      In the application-j2ee-engine.xml, execute:

   <reference

      reference-type="hard">

      <reference-target

         provider-name="sap.com"

         target-type="interface">tc/monitoring/api</reference-target>

   </reference>

 

                            b.      Add the following to your application source code (to your servlet, JSP, or EJB):

InitialContext ctx = new InitialContext();

ctx.lookup("interfaces/tc~monitoring~api");

 

See also:

Creating Configuration Groups

Installing Monitors

 

Leaving content frame