Red Hat JBoss and Wildfly
Please refer to the Waratek Proposed Directory Structure section in this document for assistance with the steps below.
Running in Standalone Mode
-
Go to
<absolute-path-to-jboss>/bin
. -
If using JBoss Application Server 7.x or Enterprise Application Server 6.x or later, open the
standalone.conf
(Linux) orstandalone.conf.bat
(Windows) file. -
If using JBoss 4.x or 5.x, open the
run.conf
(Linux) orrun.conf.bat
(Windows) file. -
Search for the following line.
# Specify options to pass to the Java VM.
-
Set
Java Options
under the line.- On Linux:
JAVA_OPTS="-javaagent:/opt/waratek/agent/waratek.jar -Dcom.waratek.WaratekProperties=/opt/waratek/<conf_*>/<name of property file> $JAVA_OPTS"
- On Windows:
set JAVA_OPTS="-javaagent:<absolute-path-to-waratek-software>\agent\waratek.jar -Dcom.waratek.WaratekProperties=<absolute-path-to-waratek-software>\<conf_*>\<name of property file> %JAVA_OPTS%"
- Restart the JBoss / Wildfly server. The server must be restarted for the changes to take effect.