How is the Frontend application name in the Introscope Investigator determined.

Document ID : KB000014245
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

How to determine the Frontend application name in the Introscope Investigator?

 

Environment:
APM 9.6 to 10.x
Answer:

A Frontend application name comes from the Servlet Context's display name (display-name tag in the web.xml). It is retrieved by calling servletObj.getServletContext().getServletContextName().

If the value returned is not Null, i.e., display name is set, this value is used as the Frontend application name.

If the value is Null, i.e., display name is not set or an exception is thrown in the servletObj.getServletContext().getServletContextName() call, the Context Path is used as the Frontend application name. The Context Path is retrieved by calling httpServletRequestObj. getContextPath().

This may sometime return "myapp" (context display name) or at other times "/myapp " (context path)

 

You can avoid "/" in front of Frontend application name by setting display-element in web.xml