Hello everyone,
I have a (hopefully simple) question about Spring Boot and Tracking Processors in Axon.
I am using Axon 3.1.2 in combination with Spring Boot.
I have a simple demo app in which I want to replay events from a JpaEventStore:
@Bean
public EventStore eventStore(EntityManagerProvider provider, TransactionManager transactionManager) {
return new EmbeddedEventStore(new JpaEventStorageEngine(provider, transactionManager));
}
I have the following configuration for the evendHandlingConfiguration:
@Configuration
public class AxonConfig {
@Autowired
public void configureProcessors(EventHandlingConfiguration eventHandlingConfiguration) {
eventHandlingConfiguration.registerTrackingProcessor("emp");
}
}
When I have a ProcessingGroup annotation set, there is no action at all from the framework.
@ProcessingGroup("emp")
public class EmployeeTest {
@EventHandler
public void on(EmployeeCreatedEvent evt) {
System.out.println("EmployeeCreated");
}
}
In another part of the app there are some events created which I can see in my underlying MySQL database.
Also the TokenStore tables are automatically created:
In my application.properties have I set the following line:
axon.eventhandling.processors.emp.mode=tracking
After all of this…no action for replaying. What am I forgetting?!?
I hope someone can point me in the right direction.
Thanks in advance.
Martijn de la Cosine