我有一个使用 JAX-WS 和 Ibatis 的 Web 服务,使用 New Relic 工具分析时可以看到运行时间为 17 秒。看到报告的细节显示数据库调用很快,但延迟的是:JAXWSWebAppServlet.service()。有人有一个想法可以吗?
谢谢你的帮助。
PD:我想知道在我的代码中哪里可以找到 JAXWSWebAppServlet.service()。有任何想法吗??
WS代码:
@WebService(name = "WS_XXXXXX", portName = "WS_XXXXXSoap12HttpPort")
@BindingType(SOAPBinding.SOAP12HTTP_BINDING)
public class WS_GetPlanUsage {
@WebMethod(operationName = "xxxxxx")
@javax.jws.soap.SOAPBinding(parameterStyle = javax.jws.soap.SOAPBinding.ParameterStyle.WRAPPED)
public GetPlanUsageMapBean getPlanUsage(@WebParam(name = "phoneNumber", partName = "request") String phoneNumber,
@WebParam(name = "initialDate", partName = "request") String initialDate,
@WebParam(name = "finalDate", partName = "request") String finalDate) {
BReturn oBReturn = null;
GetPlanUsageResponse response = new GetPlanUsageResponse();
GetPlanUsageRequest rq = new GetPlanUsageRequest();
rq.setPhoneNumber(phoneNumber);
rq.setInitialDate(initialDate);
rq.setFinalDate(finalDate);
oBReturn = new GetPlanUsageBL().getPlanUsage(rq);
GetPlanUsageMapBean getPlanUsage = (GetPlanUsageMapBean)oBReturn.getObject();
return getPlanUsage;
}