IBM Tivoli Composite Application Manager for Application Diagnostics, Version 22.214.171.124
Configure a Request Mapper
Request Mapper is highly sensitive to performance since it is frequently invoked. A poor-performing Request Mapper can have an adverse effect on the overall performance of the application server in terms of Servlet response time as well as CPU costs.
WebSphere 6.1 uses a different class loading mechanism than WebSphere 6.0 or WebSphere 5.1.1, therefore complete the following steps to configure the Request Mapper for WebSphere 6.1:
- Stop the WebSphere server.
- To configure a Request Mapper:
- Assuming the request mapper classes are packaged in requestmapper.jar, create the Request Mapper class plug-ins and package them into the jar file.
- In the datacollector_custom.properties file located in the DC_home/runtime/app_server_version.node_name.server_name/custom/ directory, set the am.requestmapper property as follows:am.requestmapper= <fully qualified requestmapper class name>where fully qualified requestmapper class name is the Request Mapper class that implements the ITCAM Request Mapper interface and is packaged in requestmapper.jar.
- Put the library requestmapper.jar in DC_home/itcamdc/lib/ext
- (Optional) The following steps are optional, they provide an example of how to configure a Request Mapper and avoid mixing the Request Mapper specific properties with other JVM system properties. This is done by creating a separate Request Mapper properties file and including all the Request Mapper properties in this file. In this way, if you need to add additional Request Mapper properties, you can do so without exposing them to other code either in the data collector or in the application server. The following steps provide an example of this optional approach:
- Create a property file called requestmapper.properties and put all the Request Mapper specific properties in this file. Put the requestmapper.properties file in DC_home/runtime/DC_specific dir.
- In the datacollector_custom.properties file located in the DC_home/runtime/app_server_version.node_name.server_name/custom/ directory, set the customer.reqestmapper.file property as follows:customer.requestmapper.file= DC_home/runtime/DC_specific dir/requestmapper.properties
- In the RequestMapper code, get the location of requestmapper.properties file by doing System.getProperty("customer.requestmapper.file")
- Restart the WebSphere server.
Java docs and an example follow:
- Package com.cyanea.mapper
- Interface mapped request
- Interface Request Mapper
- Sample Request Mapper - mapRequest
Parent topic:Request Mapper