Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
com.saga.demo.core.events.CancelPaymentEvent; import com.saga.demo.core.events.CompletePaymentEvent; import com.saga.demo.payment.handler.PaymentEventHandler; @Aggregate public class PaymentAggregate { @AggregateIdentifier private String paymentId; public PaymentAggregate() {} @CommandHandler