Excluding classes from instrumentation
Complete the following steps:
- Edit the configuration file
DC_home/runtime/app_server_version.node_name.server_name/custom/toolkit_custom.properties
to add the following new property:am.camtoolkit.gpe.customxml.exclude=excludes.xml
- Create the file excludes.xml in the same
custom directory with the following content:
<gpe> <bci> <classExcludes> <exclude>org.apache.struts.action.ActionServlet</exclude> <exclude>com.company.package.*</exclude> </classExcludes> </bci> </gpe>
- Add as many classes as needed.
- Restart the application server.
- To verify that the class has been excluded, look in
toolkit.xml
. It is displayed as follows:<classExcludes> <include>*</include> <include>org.eclipse.osgi.framework.adaptor.core.*</include> <exclude>com.company.class</exclude> <exclude>com.company.package.*</exclude> <exclude>com.sun.net.ssl.internal.ssl.JSA_RSAKeyFactory</exclude> <exclude>COM.rsa.jsafe*</exclude> <exclude>org.eclipse.osgi.*</exclude> </classExcludes>
Important: The toolkit.xml file contains runtime settings and it is refreshed every time the application server is restarted