Oracle GlassFish is an OSGi-based application container. Accordingly, you need to set configure class bootloader settings as well as load the Java Agent in the runtime JVM, as described on this page.
Instrument Oracle GlassFish
Add the location of the Java Agent JAR file as a
-javaagentJVM option in the
GlassFishdomain. You can add the agent using the
asadmintool as follows:
Ensure you escape the colon character on Linux.
Configure the boot delegation entry for the AppDynamics package, as follows:
In GlassFish 3.x through 3.1.2, open the
config.propertiesfile located at
<glassfish_home>/glassfish/osgi/felix/confand add the following package prefix to the
In GlassFish 3.1.2 and later, in the boot delegation list in the
- Restart the application server.
To verify the configuration, look at the domain.xml file located at
domain.xml file should have an entry for the
About Glassfish AMX Support
AppDynamics supports Glassfish AMX MBeans.
boot-amx node property to enable AMX MBeans. See boot-amx.
You will see the AMX domain in the MBean Browser in the JMX tab of the node dashboard.