To configure the Java agent for Apache Axis2:
-
If you run Axis2 from axis2server.bat (or .sh), create a new startup script:
startup-with-contrast.bat
. Runstart-up-with-contrast.bat
to run with Contrast. To run without Contrast, run the standardaxis2server.bat
. -
Substitute the Axis2 environment for your server and
<YourContrastJarPath>
for the path to your Contrast JAR. Then, use this code to enable the Contrast JVM parameters and call the startup script:set PROGRAM_PARAMS="$PROGRAM_PARAMS -javaagent:<YourContrastJarPath>" call <AxisDirectory> \bin\startup.bat