WSO2 ESB 跟踪请求-响应 [英] WSO2 ESB Tracking Request-Response
问题描述
我正在研究 WSO2 ESB 4.8.1通过观察
I'm working on WSO2 ESB 4.8.1 By observing
ESB HOME/repository/logs/wso2carbon.log
我需要知道一个请求与其通过我的代理服务的相关响应之间的联系.
i need to know the connection between one request and its relative response going through my proxy services.
我尝试按照代理的 insequence 和 out 序列中打印的 MessageID 属性进行操作,但我意识到,即使我不太确定,该属性也各不相同.
I tried following the MessageID property printed in the insequence and the out sequence of my proxies, but i realize, even if i'm not so sure, that this property is different from one to the other.
那么我可以通过什么方式知道所有响应都与哪些请求相关联?
So what's the way i could know which are the requests all the responses are connected with?
我应该创建自己的自定义属性并将它们记录在顺序和顺序中吗?
Should have i to create my own custom property and to log them in the insequence and outsequence?
推荐答案
1) 在请求序列中你可以得到消息 id 为
1) In the request sequence you can get message id as
<property name="msgID" expression="get-property('MessageID')"/>
2) 在响应序列中,我们使用以下方法设置相关 ID:
2) In the response sequence we set the correlation id using:
<property name="CORRELATION_ID" expression="get-property('msgID')" scope="axis2" />
参考:https://docs.wso2.com/display/IntegrationPatterns/Correlation+标识符
这篇关于WSO2 ESB 跟踪请求-响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!