Announcement Announcement Module
Collapse
No announcement yet.
Is a step listener considered to be part of a step? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X