WSO2 ESB跟踪请求-响应 [英] WSO2 ESB Tracking Request-Response

查看:249
本文介绍了WSO2 ESB跟踪请求-响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究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.

我尝试遵循打印在代理的无序和无序顺序中的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆