Previous Topic: Example 1 - Pure Java AgentNext Topic: Example 3 - Native Agent


Example 2 - Pure Java Agent Using Automatic Configuration

This example is based on the configuration of JBoss 4.2 pure Java agent on Windows using the automatic configuration option.

java -jar LisaAgent.jar -ia -java -broker tcp://localhost:2009 -name TestAgent66
Enter the path of the Java executable [C:\Program Files\Java\jdk1.7.0_40\jre\bin\java]:
=====
System verification complete. You can manually add these options to the java command-line to start the DevTest agent:
   -javaagent:C:\Project\DevTest\main\remote\dist\agent\InsightAgent.jar=url=tcp://localhost:2009,name=TestAgent66
Do you need assistance to automatically configure the DevTest agent? Please enter [Yes/Y], if no, enter any other letter, then enter 
y
Please enter the index in [] to choose the platform:
[1] JBoss
[2] IBM WebSphere App Server
[3] Oracle WebLogic Server
[4] TIBCO BusinessWorks
[5] WebMethods Integration Server Windows Service
[X] Exit
1
Detected version 4.2 installed on your system.
Enter path for Java agent configuration file [C:\DevTest\jboss\bin\run.bat]:
Automatic configuration of the Java Agent is complete. Please start your service.
The configuration info has been updated. The previous configuration was:
SET JAVA_TOOL_OPTIONS=-javaagent:C:\Project\DevTest\main\remote\dist\agent\InsightAgent.jar=url=tcp://localhost:2009,name=TestAgent7 %JAVA_TOOL_OPTIONS%
The previous configuration has been saved to file 'C:\DevTest\jboss\bin\run.bat.2014-54-25_09-54-22'
The current agent configuration is:
SET JAVA_TOOL_OPTIONS=-javaagent:C:\Project\DevTest\main\remote\dist\agent\InsightAgent.jar=url=tcp://localhost:2009,name=TestAgent66 %JAVA_TOOL_OPTIONS%