Page History
...
The following procedure describes how you can enable an additional configuration file.
To enable an additional configuration file1. Open
- Open the InstrumenterConfigList.xml file in the JVM ID-specific configuration directory for your application server:
...
<i3_root>/products/i3fp/registry/products/j2ee/config/JVMID/
...
- In the InstrumenterConfigList.xml file, locate the XML block that defines the file you want to enable. For example, to enable the JNDI custom instrumentation file, locate the following section:
- <!--
...
JNDI
Uncomment to instrument.
- -->
<!--
<config-file>
JNDI.xml
</config-file>
...
- -->
- Remove the XML comments surrounding the file name. For example:
<!--
-->
- JNDI
Uncomment to instrument.
-->
<config-file>
JNDI.xml
</config-file>
Adding your own custom instrumentation configuration file
The following procedure describes how you can add your own custom instrumentation configuration file.
To add your own custom instrumentation configuration file1. Create
- Create a new user-defined XML configuration file, for example:
UserDefined.xml, in the following way:
<?xml version="1.0" encoding="UTF-8"?>
<!--
User Defined Instrumenter Configuration File
-->
<instrumenter-config>
<custom-config>
<java-classes>
<java-class>
<class-
...
- name>
</class-name>
<methods>
<method>
<name>
</name>
</method>
</methods>
</java-class>
</java-classes>
</custom-config>
</instrumenter-config>
...
- To add the file to the InstrumenterConfigList.xml file, use the following syntax:
<!--
->
- User defined instrumenter config file
...
- -->
<config-file>
UserDefined.xml
</config-file>
...
- Modify the new XML configuration file to include the interfaces, classes, and methods you want to instrument. See the next section for more information.
About custom instrumenter configuration
...