[axonframework] Removing MetaData from event before it's published

Hi Bruno,

not entirely sure what you mean. On the AMQP Message, you can decide youself which meta data to put on. Same as the Axon meta-data, actually, by configuring CorrelationDataProviders. By default, the MessageOriginProvider is configured. To change that, all you need to do is define another provider (for example one that returns an empty map). Once a CorrelationDataProvider is configured, Axon doesn’t configure the default.

So if you’re on Spring boot, define a bean that provides a SimpleCorrelationDataProvider that was initialized without any meta-data keys.

Cheers,

Allard