简体   繁体   中英

WSO2 ESB Tracking Request-Response

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.

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) In the request sequence you can get message id as

<property name="msgID" expression="get-property('MessageID')"/>

2) In the response sequence we set the correlation id using:

<property name="CORRELATION_ID" expression="get-property('msgID')" scope="axis2" />

Refer : https://docs.wso2.com/display/IntegrationPatterns/Correlation+Identifier

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM