-
Sep 19th, 2012, 09:39 AM
#1
Is a step listener considered to be part of a step?
I am using an annotation based step listener as follows -
public class MyStepListener
{
@AfterProcess
public void afterProcess() throws Exception
{
// some logic
// if conditions are satisfied, throw Exception
}
}
And this listener is configured as follows -
<step id="processingStep" next="endStep">
<tasklet transaction-manager="batchTransactionManager">
<chunk reader="itemReader" processor="itemProcessor"
writer="itemWriter" commit-interval="100"
skip-limit="1000" >
</chunk>
<listeners>
<listener ref="myStepListener" />
</listeners>
</tasklet>
</step>
So is this step listener considered to be part of the "processingStep"? I ask because I wonder what handles the exception thrown from the step listener. I observed this behavior -
http://stackoverflow.com/questions/1...untering-a-non
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules