Skip to content
Discussion options

You must be logged in to vote

Thank you for raising this! This is a documentation issue. The contract of SkipListener is incomplete and that section of the reference doc is misleading. Here is why: other listeners like ItemWriteListener#onWriteError and ChunkListener#onChunkError, explicitly mention that those methods are executed as part of the transaction driven by the step, which is about to be rolled back. As a result, any transactional operation that is called there should use a separate transaction. There is also a specific example for that use case in Logging Item Processing and Failures, with a similar important note about transactions at the bottom of the section:

if your listener does anything in an onError(…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ctrung
Comment options

Answer selected by ctrung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter
2 participants