@Override
public void doFilterImpl(final ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException {
long startTime = System.currentTimeMillis();
ServiceDetails reqServiceDetails = null;
HttpServletRequest httpServletRequest = (HttpServletRequest) request;
HttpServletResponse httpServletResponse = (HttpServletResponse) response;
String methodName = httpServletRequest.getMethod();
if (uniqueUriMonitoringEnabled) {
methodName += ":" + httpServletRequest.getRequestURI();
}
boolean reportToMonitoring = true;
try {
LOGGER.trace("Monitoring filter: Request processing started at: {}", startTime);
// methodName = httpServletRequest.getMethod() + ":" + httpServletRequest.getRequestURI().toString();
methodName = updateMethodName(httpServletRequest, methodName);
LOGGER.trace("transaction method name is: {}", methodName);
RMIMonitoringAgent.getInstance().register();
reqServiceDetails = serviceDetails;
reqServiceDetails = new ServiceDetails(description, serviceName, "HTTP", port);
CommunicationInfo.getCommunicationInfo().transactionStarted(reqServiceDetails, methodName, threadPool.getThreads());
} catch (Exception e) {