Example on using SimpleEventBus to send and receive events

Is there any example on using SimpleEventBus to send and receive events?
I don’t need to handle the use case by event sourcing but need to receive events from another component to update the view. Thanks.

In the Configuration API, just provide:
configurer.registerEventBus(c -> SimpleEventBus.builder()/* customization here, if needed*/.build());

Then you’ll also need to make sure each of your aggregates has a Repository defined, otherwise Axon will attempt to use the default, which is event sourcing (which is not possible with a SimpleEventBus).

Hope this helps.
Cheers,