Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
917 views
Welcome To Ask or Share your Answers For Others

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...