Knowledge Base > Automation Engine and Target Systems > SAP > JMX in SAP NetWeaver

JMX in SAP NetWeaver

The AE JMX agent facilitates using MBeans in SAP NetWeaver.

Monitoring the J2EE Engine

The status of the J2EE Engine can be queried via JMX. The output information is also displayed in the Visual Administrator under Server -> Services -> Monitoring.

All the Visual Administrator's functions are provided via MBeans and can also be used in AE.

Limitation: AE cannot use JMX operations or attributes that use SAP-specific classes (for example, com.sapmarkets.bam.application.User) or complex data structures such as lists, maps, or arrays.

The AE MBean Browser in the JXM job displays a maximum of 300 MBeans. A search filter facilitates the search for particular MBeans (right-click the tree structure -> apply filter...).

For example: The number of unsuccessful login attempt should be queried. The first illustration shows this value below the node Security -> Aggregated Data. Therefore, you can filter for "*Security/Aggregated Data/UnsuccessfulLogonAttemptsCount*" in the MBean Browser. Exactly one MBean is returned in the AE environment.

Here you can select one of the following attributes: "Value", "MaxValue" or "MinValue". An AE job can be scheduled that queries the number of error messages periodically.

Starting and Stopping a Service

The Visual Administrator also configures, starts and stops services. As it also uses JMX MBeans, this function is available via the agent.

Services are listed in the Visual Administrator under Server -> Services:

For example: The Telnet service should be started or stopped.

You can filter "*SAP_J2EEServicePerNode*" in order to have all services displayed in the MBean Browser. The returned MBeans correspond to the corresponding services.

All services have a "start" and "stop" method. Select the entry "telnet" from the tree structure. Then select the method "stop". Click OK to generate an AE job that stops the Telnet service:

The modification is immediately visible in the Visual Administrator: