Locate and open your TIBCO BW bwengine.tra file typlically under TIBCO_HOME/bw/5.12/bin/bwengine.tra (Linux environment)
Look for the line that states:
Go to the end of the file and add (replace ? with your own values as needed or remove the flag that does not apply): java.extended.properties=-javaagent:/opt/appd/current/appagent/javaagent.jar -Dappdynamics.http.proxyHost=? -Dappdynamics.http.proxyPort=? -Dappdynamics.agent.applicationName=? -Dappdynamics.agent.tierName=? -Dappdynamics.agent.nodeName=%tibco.deployment% -Dappdynamics.controller.ssl.enabled=? -Dappdynamics.controller.sslPort=? -Dappdynamics.agent.logs.dir=? -Dappdynamics.agent.runtime.dir=? -Dappdynamics.controller.hostName=? -Dappdynamics.controller.port=? -Dappdynamics.agent.accountName=? -Dappdynamics.agent.accountAccessKey=?
Save file and redeploy. All your applications should now be instrumented automatically at deployment time.