[axonframework] Difference between using EventBus vs EventGateway to publish Event

Hi Michael,

it seems you’re ‘double wrapping’ in the first case. Just use ‘asEventMessage’ and don’t surround it with GenericEventMessage(…) again. ‘asEventMessage’ already wraps your object. The extra ‘GenericEventMessage’ will cause the wrapped message to become the payload of a new message. And you probably don’t have a handler for that type…

Hope this helps.
Cheers,

Allard