When using Asynchronous commandBus, the saga seem to be handling the same event multiple times. Here is the config for the commandBus
@Bean
public CommandBus asynchronousCommandBus(final TransactionManager transactionManager) {
AsynchronousCommandBus asynchronousCommandBus = new AsynchronousCommandBus();
asynchronousCommandBus.registerHandlerInterceptor(new TransactionManagingInterceptor<>(transactionManager));
return asynchronousCommandBus;
}
What am I missing. The saga works fine when using SimpleCommandBus.
Regards,
Livious