java - Inheritance in spring batch not working as intended -
when run following code using spring batch exception.
<job id="simplejob"> <step id="parentstep"> <tasklet allow-start-if-complete="true"> <chunk reader="simplereader" writer="simplewriter" commit-interval="3"/> </tasklet> </step> <step id="concretestep1" parent="parentstep"> <tasklet start-limit="5"> <chunk processor="simpleprocessor" commit-interval="2"/> </tasklet> </step> </job> it gives following exception:
exception in thread "main" org.springframework.beans.factory.parsing.beandefinitionparsingexception: configuration problem: element [concretestep1] unreachable i don't understand why getting error. have seen similar code in spring source. not work. please me out this.
parent step should out of scope. is:
<job id="simplejob"> <step id="concretestep1" parent="parentstep"> <tasklet start-limit="5"> <chunk processor="simpleprocessor" commit-interval="2"/> </tasklet> </step> </job> <step id="parentstep"> <tasklet allow-start-if-complete="true"> <chunk reader="simplereader" writer="simplewriter" commit-interval="3"/> </tasklet> </step>
Comments
Post a Comment