Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<instrumenter-config>
     <custom-config>
          <java-classes>
                    <java-class>
                    <class-name>
                         bea.jolt.JoltRemoteService
                    </class-name>
                    <methods>
                    <capture-method>
                    <name>
                    init
                    </name>
                    <capture-param-index>
                    0
                    </capture-param-index>
                    </capture-method>
                    <method>
                         <name>call</name>
                    </method>
                    </methods>
                    </java-class>
          </java-classes>
     </custom-config>
</instrumenter-config>

The <capture-method> element that is shown in this example identifies the Java method to be used to capture the data. The captured data is displayed in Precise for J2EE for methods specified by the <method> elements that share the same <java-class> element as the <capture-method> element. For the bea.jolt.JoltRemoteService.call case, since the Tuxedo service name is actually specified in the constructor (init) method, init is specified as the <capture-method> element.

The <capture-param-index> element defines the index count of the Java method argument to capture. The first argument is numbered zero, the second argument is numbered 1, and so on. The captured argument is converted to a string, using toString(), and appended (separated by a colon) to the method name of interest.

If you use the <capture-param-index> element without the <capture-method> element, the argument value of the index number that the <capture-param-index> element specifies is displayed following the associated method name. In other words, when <capture-method> is not used and <capture-param-index> is used, the argument that is specified by the <capture-param-index> element is both captured and appended to the method that is entered in the <name> element. For example, the following configuration appends the doProcess method’s first argument value to the doProcess method name that is displayed in Precise for J2EE.

<methods>
     <method>
          <name>doProcess</name>
               <capture-param-index>0</capture-param-index>
     </method>
</methods>

Anchor
AboutFileSystemSecurity
AboutFileSystemSecurity
About file system security

...