Bugzilla – Bug 4548
Add onError to ChunkListener
Last modified: 2013-02-04 23:26:24 UTC
I know this interface was intended to mirror SB's. SB recently added (it's in the nightly build) an afterChunkError method that is called once a chunk has been marked for rollback. It handles the scenario where a chunk is rolled back (since afterChunk is not called in that scenario).
Will take into consideration.
Given where Bug 4284 has ended up, we could close this one 4548 as a dup I think.
But http://java.net/bugzilla/show_bug.cgi?id=4284 proposes to add onCommitError to ChunkListener, to be invoked if the transaction commit fails. That's a narrow case resulting in rollback. So let's call the method onError and invoke it in response to any condition that causes the rollback.
*** This bug has been marked as a duplicate of bug 4284 ***