Oracle Weblogic
Please refer to the Proposed Directory Structure section in this document for assistance with the steps below.
- Go to
Oracle/Middleware/user_projects/domains/<domain_name>/bin
. - Open the
startWebLogic.sh
(Linux) orstartWebLogic.cmd
(Windows) file. - Add the following to the beginning.
-
On Linux:
JAVA_OPTIONS="-javaagent:/opt/waratek/agent/waratek.jar -Dcom.waratek.OceanicProperties=/opt/waratek/<conf_*>/waratek.properties $JAVA_OPTIONS"
It is important to list the Agent options before the existing Java options above (especially if the configuration utilizes managed servers)
-
On Windows:
set JAVA_OPTIONS=-javaagent:<absolute-path-to-agent-home-folder>\agent\waratek.jar -Dcom.waratek.OceanicProperties=<absolute-path-to-agent-home-folder>\<conf_*>\waratek.properties %JAVA_OPTIONS%
- Restart the WebLogic server. The WebLogic server must be restarted for the changes to take effect.