Configure the Java agent for Axis2

To configure the Java agent for Apache Axis2:

  1. Install the Java agent from Contrast before proceeding.

  2. If you run Axis2 from axis2server.bat (or .sh), create a new startup script: startup-with-contrast.bat. Run start-up-with-contrast.bat to run with Contrast. To run without Contrast, run the standard axis2server.bat.

  3. 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