Skip to content

Commit

Permalink
Add note about not scoping step beans with job scope
Browse files Browse the repository at this point in the history
Resolves #3900

Signed-off-by: Mahmoud Ben Hassine <[email protected]>
  • Loading branch information
fmbenhassine committed Dec 18, 2024
1 parent 2bd3c15 commit 7481cf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spring-batch-docs/modules/ROOT/pages/step/late-binding.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ The following example shows how to access the `ExecutionContext` in XML:

NOTE: Any bean that uses late binding must be declared with `scope="step"`. See
xref:step/late-binding.adoc#step-scope[Step Scope] for more information.
A `Step` bean should not be step-scoped. If late binding is needed in a step
definition, the components of that step (tasklet, item reader or writer, and so on)
A `Step` bean should not be step-scoped or job-scoped. If late binding is needed in a step
definition, then the components of that step (tasklet, item reade/writer, completion policy, and so on)
are the ones that should be scoped instead.

NOTE: If you use Spring 3.0 (or above), the expressions in step-scoped beans are in the
Expand Down

0 comments on commit 7481cf8

Please sign in to comment.