Configuring error handling
jEAP Messaging auto-configures an error handler for you (see Error handling); this page is the short checklist for what your service itself needs to set up so it works.
-
Set the error-handling identity and topic (see Configuration — Core):
jeap:messaging:kafka:systemName: JMEserviceName: ${spring.application.name}errorTopicName: jme-messageprocessing-failedsystemNameanderrorTopicNameare required;serviceNamedefaults to${spring.application.name}. -
Make sure the service's Kafka user has permission to publish to the error topic.
-
Set up an Error Handling Service (EHS) instance for the system, if one doesn't exist yet, and follow its getting-started guide for the remaining steps on the EHS side: ordering topics, retry permissions, roles, Agir access and deploying the EHS itself.
-
Tune publication retries, stack-trace truncation and stack-trace hashing if the defaults don't fit — see Error reporting.