Installing a Java virtualization agent into a Java application
To enable the Java™ virtualization
agent to capture Java method
calls being used by a Java application,
the agent must be loaded into the application's Java virtual machine (JVM). To load the agent
into the application's JVM, modify the startup parameters of the application.
About this task
The Java virtualization agent comprises the following
three JAR files, and an XML file for registration (registration.xml):
- greenhat.javaagent.jar
- greenhat.javaagent.ext.jar
- greenhat.javaagent.linkage.jar
The registration.xml file in JavaAgent package need not be in the same directory as the JAR files, but by default, it is assumed that it is. If you place the registration.xml file in a different location, specify the path in the javaagent property in the following format: -javaagent:location of greenhat.javaagent.jar file=location of registration.xml file.
Note: In
the following procedure, it is assumed that the files are present
in the C:\RITJavaVirtualizationAgent directory.
You must update the path as applicable to your environment.
Procedure
Results
The application environment is configured to use the Java virtualization agent. Before you can capture any Java method calls in the Recording Studio perspective, you must create a Java method transport in IBM Rational Integration Tester. For information about how to create a Java method transport, see Creating logical Java application resources.