Understanding of Contexts in smallrye reactive messaging #3019
dankristensen
started this conversation in
General
Replies: 1 comment
-
\CC @ozangunalp |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We do not quite understand how the context propagation is working, when we use @Blocking in an @inbound message handler.
See this reproducer repo: https://github.com/JakobTveen/mdc-context-propagation
We are populating a correlationId in a MessageHeader, and want to assign it to MDC when we have received the message. We get the correct value, but when setting it and then getting it again, it ALWAYS returns null.
If we remove @Blocking, it is working fine.
Can anybody explain this behaviour? And possibly come with a suggestion to how we can do it when having the @Blocking annotation applied.
Beta Was this translation helpful? Give feedback.
All reactions