I have the following spring batch job configuration. There is a single reader which then passes details to a composite writer which has two specific writers. Both writers share
You can access the stepExecutionContext only within a bean defined in the scope="step". Change your bean definition to
<bean id="stagingLoadWriter" scope="step" class="a.b.c.StagingLoadWriter" parent="abstractStagingWriter" />
<bean id="stagingPolicyWriter" scope="step" class="a.b.c.StagingPolicyWriter" parent="abstractStagingWriter"/>