WebSphere Application Server - Express, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Using Version 5.0 PMI API in Version 3.5.5+ and Version 4.0.x

Why and when to perform this task

For Version 3.5.5+, follow these instructions:

Steps for this task

  1. Make configuration changes.

    For PMI to interact correctly with Version 3.5.x application servers, you must upgrade both the Version 3.5.x run time environment and the PMI JAR files to the levels specified below. In addition, you must prepend the repository.jar, ejs.jar, and ujc.jar files from the upgraded Version 3.5.x run time environment to the PMI client's run time classpath.

    1. Change the Version 3.5.x run time environment.

      Ensure the Version 3.5 environment is Version 3.5.5 or later.

    2. Change the PMI client's run time or development environment. Both the Version 5.0 PMI client and the Version 4.02 client can work with the Version 3.5.5+ WebSphere Application Server.

      Copy the repository.jar, ujc.jar and ejs.jar files from the WebSphere_35_installation_root/lib directory to each machine from which a PMI client is run.

      Prepend the Version 3.5.5+ repository.jar, ujc.jar and ejs.jar files to the PMI client's run time classpath.

  2. Copy the XML configuration files from Version 4.0.2+.
    1. Get the perf.jar file from Version 4.0.
    2. Append the perf.jar file to the classpath of the Version 5.0 PMI client. Note: Ensure the Version 5.0 pmi.jar file and pmiclient.jar files come before the Version 4.0 perf.jar file.
  3. Make programmatic changes.
    A new constructor for PmiClient allows a client to monitor Version 3.5.5 or later application servers. The new constructor takes three string parameters: hostName, serverName, and version.
    public PmiClient(String host, String port, String version)
    Using this constructor with "EPM" as the third parameter creates a PmiClient that can retrieve data from Version 3.5.5+ application servers.
    PmiClient pmiClnt = new PmiClient(hostName, portNumber, "EPM")

What to do next

Use Version 4.0 PmiClient API to write your own client application with WebSphere Application Server Version 4.0 and 3.5.5+. See the example code for using Version 4.0 API in the topic "Example: Performance Monitoring Infrastructure client (Version 4.0)".

To run a Version 5.0 PMI client with a Version 4.0 server, the instructions are similar, except in substep 2 of step 1, you need to copy the repository.jar and ujc.jar files from a WebSphere Application Server, Version 4.0, installation.




Related tasks
Using PMI client to develop your monitoring application (deprecated)

Related reference
Example: Performance Monitoring Infrastructure client (Version 4.0)
Performance: Resources for learning

Task topic    

Terms of Use | Feedback

Last updated: Jun 8, 2005 12:45:23 PM EDT
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tprf_implement.html

© Copyright IBM Corporation 2002, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)