Hi,
We’re currently migrating our microservices from Axon 3.1 to the newest version (4.4.6).
With version 3.1 we had setup our sagas to be able to read events from event bus and AMQP message source just by registering subscribing saga manager with AMQP message source
public SagaConfiguration<SomeSaga> someSagaConfig(SpringAmqpMessageSource externalEventsMessageSource) {
return SagaConfiguration.subscribingSagaManager(SomeSaga.class, c -> externalEventsMessageSource);
}
Reading from event bus was given by framework out of of the box.
However, using v4.4.6 we are not able to register two subscribing event processors for one saga. Either we can read events from event bus (with no additional configuration) or AMQP message source by registering event processor like this:
public void someSagaConfiguration(EventProcessingConfigurer config, SpringAmqpMessageSource externalEventsMessageSource) {
config.registerSubscribingEventProcessor("SomeSagaProcessor", c -> externalEventsMessageSource);
}
But I can see no way to register both of them after hours of debugging.
I found this post which describes the same issue, but Axon version discussed there was 3.3.
Can someone confirm that what we’re trying to achieve is not doable in the newest Axon version?
Thanks in advance,
Tomek
BTW: we would like to switch to tracking processors, but currently we’re not able to do this easily due to various limitations.