
Each J2EE application can be monitored using the GRMG architecture. To do this, the application developer has to follow the steps described in this section.
If you want all versions of your heartbeat to appear in one monitor, leave the SCENNAME constant.
If you want to separate the monitor trees, add a version number or other information to the SCENNAME so that the technical name changes between releases or support packages.
Examples:
J2EE_630 - Release specific. J2EE_630 needs a new monitor definition.
BMS - Generic. A BMS monitor automatically picks up all versions and instances of the heartbeat for BMS, the Broadcast Messaging Server.
BMS_40 - Release-specific. BMS_640 needs a new monitor definition. Its monitoring trees will not automatically appear in the BMS monitors in the CCMS.
For example, GRMG: <your_scenario_name>:<your_version> %SID on %HOST.
If you are using HTTPS, use the %HTTPSPORT pattern string in place of the HTTPS port.
By following this recommendation you will completely automate the upload process and, if there are no specific properties to be configured, you can simply choose the Upload option.
In this file are specified the libraries the application uses in order to run properly. You have to add the following code to this XML:
<application-j2ee-engine> <reference reference-type="weak"> <reference-target target-type="library"provider-name="sap.com"> com.sap.util.monitor.grmg </reference-target> </reference> <reference reference-type="weak"> <reference-target target-type="library"provider-name="engine.sap.com"> sapxmltoolkit </reference-target> </reference> </application-j2ee-engine>
For more information about the syntax of the application-j2ee-engine.xml, see application-j2ee-engine.dtd .
If you use HttpServletRequest.getInputStream() method, you cannot use HttpServletRequest.getParameter() . Therefore, if you want to have parameters in the URL, you have to use HttpServletRequest.getQueryString() .
When the application is deployed on the J2EE Engine, you can manage your GRMG configuration and then upload the grmg-customizing.xml on an ABAP system using the GRMG runtime in the Visual Administrator. For more information, see The GRMG Runtime Control in the Visual Administrator .
Adding the grmg-customizing.xml to your application and uploading it on an ABAP system is not enough for monitoring the availability of the application. The XML file only provides information to the ABAP system about the application components that will be monitored. Using this information, the ABAP system then sends requests to the application to provide monitored data. Therefore, the application itself must do the monitoring and then provide a response to the ABAP system, which will visualize the monitors data in the CCMS.
To do the monitoring, the application developer must create and attach a Servlet or JSP component to the application. For more information about how such a component is developed, see GRMG: Instrumentation of a Component .