Configure the Java agent for Axis2

  • Updated

To configure the Java agent for Apache Axis2:

  1. Install the Contrast Java agent.

  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

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request