Skip to content

Document asynchronous processing error handling - #5607

Open
nippyclouding wants to merge 1 commit into
spring-projects:mainfrom
nippyclouding:GH-833
Open

nippyclouding wants to merge 1 commit into
spring-projects:mainfrom
nippyclouding:GH-833

Conversation

@nippyclouding

Copy link
Copy Markdown

Explain why AsyncItemProcessor processing failures are reported through ItemWriteListener.onWriteError, with an example of registering the listener on a step. Clarify that the callback receives futures and how to retain the failed input item in a custom exception.

Update the Java and XML configuration examples to use the required delegate constructors.

Closes #833

Validation:

  • ./mvnw -B -ntp package
  • ./mvnw -B -ntp antora -pl spring-batch-docs
  • Compiled the Java snippets extracted from the page and verified that processing and writing failures reach the listener. Loaded and executed the XML examples with sample delegates.

Show how to register an ItemWriteListener for processing failures and update the Java and XML examples to use delegate constructors.

Closes spring-projectsgh-833

Signed-off-by: Lee Sang Won <nippyclouding@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how to handle asynchronous processing errors [BATCH-2773]

1 participant