Skip to main content

jEAP Spring Modulith Error Handling Starter

Source on GitHub

This repository provides the Spring Boot starter that connects failed Spring Modulith event publications to the jEAP Error Handling Service. It applies an application-owned retry policy, reports exhausted publications and consumes commands that retry or discard an individual publication.

The starter is part of the jEAP platform.

The first release targets Spring Modulith JDBC v2 with PostgreSQL. It handles persistent AFTER_COMMIT publications for asynchronous @ApplicationModuleListener methods and synchronous @TransactionalEventListener methods that run in a REQUIRES_NEW transaction.

Modules​

ModulePurpose
jeap-spring-modulith-error-handling-starterAuto-configuration and the application-side error-handling integration.
jeap-spring-modulith-error-handling-starter-itIntegration tests running a real Spring Modulith application with PostgreSQL, the transactional outbox, and Kafka.

Status​

Retry, generation-based escalation through the transactional outbox, ShedLock-coordinated reconciliation and generation-exact retry and discard command handling are implemented. Commands are bound to the failure event that created them, making stale and duplicate delivery a no-op. Correctness is based on persistent PostgreSQL state; proactive failure observation only reduces escalation latency.

Documentation​

TopicFile
Getting starteddocs/getting-started.md
Architecturedocs/architecture.md