I am trying to upgrade a project from Axon 3 to Axon 4, and I cant seem to get the configuration for event handling to work.
What I have changed in the process of upgrading to version 4:
-
Bump up Axon version from 3.4.2 to 4.1.1
-
Include the following dependencies in the pom: axon-eventsourcing, axon-modelling, axon-messaging, axon-configuration, axon-spring, axon-test (it is a conscious decision at this stage not to use the spring auto configuration)
-
In the class annotated with
@SpringBootApplication
I have changed:
@Autowired public void configure(EventProcessingConfiguration configuration) { configuration.registerTrackingEventProcessor("normalProcessor"); }
to:
@Autowired public void configure(EventProcessingConfigurer configurer) { configurer.registerTrackingEventProcessor("normalProcessor"); }
The event handlers are annotated with ProcessingGroup("normalProcessor")
but now when I run the application and trigger a command, I can see that the commands are handled in the aggregate, but the event handlers never get the events published from the aggregates.
Any advice on what I could be missing?