Setting Up the Centralized Application Monitor System
The first step in setting up the centralized Application Monitor System is to configure and run a JMS Server. For my testing I used Sun's Java 2 Platform, Enterprise Edition (J2EE) reference implementation, which you can download from http://java.sun.com/products/jms/docs.html. After you download and install it, start the reference implementation by entering j2ee at the command prompt. After the JMS server is initialized, the JMS-administered topic messages must be created. To create a topic use this command:

j2eeadmin - addJmsDestination 
      <topic name> topic

These topics are required to run the centralized Application Monitor System:

ApplicationMonitorUpdate
ApplicationMonitorSync
ApplicationMonitorCommand
ApplicationMonitorReSync
ApplicationMonitorAlive

Once the JMS server is started and configured, you need to edit the ApplicationMonitorProperties.ini file. This file contains system property definitions and values. These system properties include:

  • ApplicationMonitor.LogFile - Set to the root path where the log files of monitor applications will be stored
  • ApplicationMonitor.EmailNotifications - Set to the path where the EmailNotifications.xml file is stored
  • ApplicationMonitor.SmtpServer - Set to the IP address or host name of the STMP mail server
  • ApplicationMonitor.EmailDelimeter - Set to the character used to separate e-mail addresses within EmailNotifications.xml

The next step is to start the ApplicationMonitorServer by using this command:

java -DApplicationMonitor.
      PropertyFile=
      <path>/
      ApplicationMonitor
      Properties.ini -
      Djms.properties=
      %J2EE_HOME%\config\
      jms_client.properties -
      Dorg.omg.CORBA.ORBInitialHost=
      <JMS server host> -classpath 
      <class path of Application 
      Monitor classes> Server.
      ApplicationMonitorServer

Finally, run the ApplicationMonitorAdministrator to view and control remote processes by using this command:

java -DApplicationMonitor.
      PropertyFile=
      <path>/
      ApplicationMonitor
      Properties.ini -
      Djms.properties=
      %J2EE_HOME%\config\
      jms_client.properties -
      Dorg.omg.CORBA.ORBInitialHost=
      <JMS server host> -classpath <
      class path of Application 
      Monitor classes> 
      Administrator.gui.
      ApplicationMonitorAdministrator