Axon Event Handler not working on a different microservice

389 Views Asked by At

I was implementing event-driven CQRS concept using Axon framework. I created two separate microservices and their own two write and read databases.

I am publishing an event in ms-1 and now I want to handle that event in ms-2, so that I can persist it in my read DB. But the @EventHandler is not working in my ms-2. The events are published on the AxonServer, I can see the updates there.

And yes, I do have @Component on the EventHandler class in ms-2. Also, I am running AxonServer on docker.

The @EventHandler works fine when it is in the same microservice.

My axon-framework dependency is 4.5.8 and google guava's is 30.1.1-jre

0

There are 0 best solutions below