This topic provides instructions for enabling the webapp response time.

1

In a text editor, edit the web.xml file located under ${installpath}/config/cells/${server.node}/applications/${app}.ear/deployments/${app}/${webapp}/WEB-INF/.

2

Add the following snippet of XML just after the last <context-param> tag, and before the first <servlet> tag.

<!-- HYPERIC HQ RESPONSE TIME FILTER -->
<filter>
<filter-name>JMXFilter</filter-name>
<filter-class>org.hyperic.hq.product.servlet.filter.JMXFilter</filter-class>
<init-param>
<param-name>responseTimeLogDir</param-name>
<param-value>${installpath}/logs</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>JMXFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- END HYPERIC RESPONSE TIME FILTER -->
3

Add the filter jar using the following code:

% mkdir
 ${installpath}/installedApps/${server.node}/${app}.ear/${webapp}/
WEB-INF/lib
% cp agent-${HQVersion}/product_connectors/servlet/libs/hq-filter.jar \
${installpath}/installedApps/${server.node}/${app}.ear/${webapp}/
WEB-INF/lib
4

Restart the WebSphere server.