We are using JBoss EAP and thus configure Axon via CDI.
Basically, what we want to do is simply forward the entire Axon’s MetaData coming from command handler directly to event handler.
What we are trying is:
// some other configuration stuff
.configureCorrelationDataProviders(conf -> Collections.singletonList(Message::getMetaData))
However, this doesn’t seem working (see the attached CDISetup for more information)
Are we missing something?
CDISetup.java (4.48 KB)