I definitely do not want to distract from the main focus of the question (that I am sure other folks from the team will chime in on). However, I am a little curious - were the existing Axon CDI modules out there ([1], [2]) inadequate? Or was is simply easier/quicker to put together your own producers?
I shall have a look on provided modules, which I was not aware of when started working with Axon.
But still, the question is quite simple - is the provided configuration correct in terms of registering CorrelationDataProvider? If so, what could be the reason of not picking it up?
I definitely agree with you - your original question still stands.
Just to be clear, these two projects are not really officially AxonIQ sanctioned - just community efforts. I am exploring an official Axon CDI module right now, hence my curiosity :-).
the answe to your question really depends on the configuration that’s in the ‘//some other configuration stuff’ part.
If you use default messaging components, the correlation data will automatically be passed on. If you configure your own conmand bus, for example, you’ll also have to pass these explictly to it.