Running your new monitoring applications

Use this page to learn about the steps you must follow in order to run monitoring applications.

About this task

Follow these steps to run your monitoring applications.

Procedure

  1. You need a WebSphere® Application Server installation or WebSphere Application Server Java™ Platform, Enterprise Edition (Java EE) client package to run a PMI application.
  2. Use a PMI client API to write your own application.
  3. Compile the newly-written PMI application and place it on the class path. (The jar files under %WAS_HOME%\lib and %WAS_HOME%\classes folder will be placed in the class path by the following script.)
  4. To run a PMI application you need a WebSphere Application Server runtime environment (the application server installation or a Java EE client package). Using the following script to run the application:
    Note: The following is formatted for Windows based systems. You may need to adjust the script depending on your operating system.
    @echo off
    @setlocal
    
    call "%~dp0setupCmdLine.bat"
    
    "%JAVA_HOME%\bin\java" "%CLIENTSAS%" "%CLIENTSOAP%" -DwebsphereV5Statistics=false 
    -Dwas.install.root="%WAS_HOME%" -Dws.ext.dirs="%WAS_EXT_DIRS%" -classpath "%WAS_CLASSPATH%" 
    com.ibm.ws.bootstrap.WSLauncher com.ibm.websphere.pmi.PmiJmxTest %*