marinkobabic / axon-kafka-example

Example of axon-kafka module usage
12 stars 11 forks source link

Could you help me to implement this example with Saga. #3

Open pratik01 opened 6 years ago

pratik01 commented 6 years ago

I am trying to implement the Axon Saga but when any new event published by the consumer then @SagEventHandler is not getting the event. While without Saga annotation its works

marinkobabic commented 6 years ago

I have tried to get it work, but I failed https://github.com/AxonFramework/AxonFramework/issues/734 I have checked in the actual code, so that you have the all the details.

pratik01 commented 6 years ago

Thanks for your time. I have tried with your provided Saga Configuration details. So saga listened to the start saga event but not listen end saga event. Using this reference I have created the one sample and following is the link of code.

https://bitbucket.org/pratik01/ms-axon-kafka-example/src/master/

marinkobabic commented 6 years ago

You have associated the id properly? In my case I didi it using the following line

SagaLifecycle.associateWith("endId", startEvent.getStartId());

This way the Saga can be found in the store using the property of the EndEvent.endId and the Saga can be terminated.