Some restricted environments do not allow any changes to the JVM startup script. For these environments AppDynamics provides the appdynamics.agent.startup.hook property. This "startup hook" allows a single point of deployment for the agent. You create a Java main method that is invoked programmatically, before your startup script is executed.
To create the "startup hook" Agent Program
- Implement a class with Java main method.
- Create a JAR file for this class.
- In the manifest of the JAR file, specify the class created in step 1.
Add the following javaagent argument and system properties (-D options) to your startup script: