Show TOC Start of Content Area

Function documentation A Programmatic Interface that Creates and Installs 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.

Activities

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

...

...

       1.      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>

 

       2.      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:

Configuration Groups

Summary Nodes, Object Nodes, and Monitors

 

 

 

End of Content Area