I setup app agent for JBoss 7.1.1 recently. The AppD documentation is incomplete here. I have given steps to follow below.
- Modify following line in standalone.conf.bat. This adds AppDynamics modules to JVM.
set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.byteman,com.appdynamics.,com.singularity,com.singularity."
- Add following lines in standalone.conf.bat to configure log manager.
set "JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
set "LOGMANAGER_JAR=%JBOSS_HOME%\modules\org\jboss\logging\main\jboss-logging-3.1.0.GA.jar"
set "JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:%LOGMANAGER_JAR%"
- Add following lines in standalone.bat
set "JAVA_OPTS=-javaagent:F:/AppDynamics/AppServerAgent/javaagent.jar %JAVA_OPTS%"
The line should be placed just above following section.
set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed