Guest User

I would like to define the each transaction per URI using the lwst_txserver_method_using_param option.

However, our project defines the business through job_cd but the problem is that we get the job_cd through HttpServletRequest.getHeader(“job_cd”).

So, I set as the follows; but difficult to define.

Is it avaiable to set the HttpServletRequest?

Khalid Saeed

The method setting in the option should be executed within the application at least once.

If the method is executed multitple times, the last parameter/return value is set.

Guest User

Of course, it is executed.

I specify the different method in the lwst_txserver_method_using_param, the method captures others. But when I set the HttpServletRequest.getHeader(), it does not capture.

Khalid Saeed

The javax.servlet.http.HttpServletRequest is an interface.
However, you will get the result if you register the class that implemented the vax.servlet.http.HttpServletRequest.

The below is a sample tested on the Tomcat.

1. After set the interface on the profile, restart the application server.

2. Check the class which has the method name as getHeader.
0002[09:14:58 169][ 0][ 0] public String org.apache.catalina.connector.Request.getHeader(String)

In the JENNIFER dashboard, move to Problem Determination→Utility→Loading Class. Aand search the above class and check whether the interface is javax.servlet.http.HttpServletRequest or not.

3. To display the return and parameter value, set as follows. If the value is correct, input the method in the lwst_txserver_method_using_param.

- Setting Value


- Result.

[07:59:52 025][ 2][ 0] public String org.apache.catalina.connector.Request.getHeader(String)
[07:59:52 025][ 0][ 0] PARAM[host] Request.getHeader
[07:59:52 025][ 0][ 0] RETURN[localhost:8088] Request.getHeader