Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
org.springframework.stereotype.Component; import com.saga.demo.core.events.CompleteShipEvent; import com.saga.demo.core.models.Shipment; import com.saga.demo.shipment.repository.ShipmentRepository; @Component public class ShipmentEventHandler { @Autowired private ShipmentRepository repository;