wso2 esb如何匹配来自日志文件的响应和请求

wso2 esb how to match response and request from log file

当我查看 esb 日志并试图找出哪个响应对应于哪个请求时,我无法做到,因为 esb 使用事件而不是线程。有什么想法吗?

ESB 日志如下:

TID: [0] [ESB] [2015-05-31 00:03:23,147]  INFO    {org.apache.synapse.mediators.builtin.LogMediator} -  To:    /services/EchoProx, MessageID:    urn:uuid:4a300fc1-d5b1-4aeb-9068-164e69cdb5a0, Direction: request,    Envelope: <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope    xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body></soapenv:Body></soapenv:Envelope>    {org.apache.synapse.mediators.builtin.LogMediator} TID: [0] [ESB]    [2015-05-31 00:03:27,123]  INFO    {org.apache.synapse.mediators.builtin.LogMediator} -  To:    http://www.w3.org/2005/08/addressing/anonymous, WSAction: ,    SOAPAction: , MessageID:    urn:uuid:ff8def98-3ce0-4cd4-a593-9c7b423ff88e, Direction: response,    Envelope: <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><jsonObject><result>true</result></jsonObject></soapenv:Body></soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}

您可以为此 [1] 使用关联标识符模式。

[1] https://docs.wso2.com/display/IntegrationPatterns/Correlation+Identifier.

参考之前回答过的同一个问题。

[2]