You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the XML configuration style, the transaction manager is configurable as an attribute of the tasklet element. This means other step types (partition step, flow step, etc) do not have this attribute, which makes sense since those step types do not require a transaction manager by design (see here).
With Java configuration on the other hand, the transaction manager is configurable at the StepBuilderHelper level, which is common to all step builders. While this is not an issue in itself, it requires the configuration of something that is not required in the first place, in addition to introducing an inconsistency between the two configuration styles:
The transaction manager configuration should be moved down from StepBuilderHelper to AbstractTaskletStepBuilder in order to make this consistent with XML config.
The text was updated successfully, but these errors were encountered:
Before this commit, the transaction manager was configurable
at the StepBuilder level, which is inconsistent with the XML
config style in addition to be not needed for most step types.
This commit moves the configuration of the transaction manager
from the StepBuilder down to the AbstractTaskletStepBuilder,
which is the level where the transaction manager is needed.
Issue spring-projects#4130
With the XML configuration style, the transaction manager is configurable as an attribute of the
tasklet
element. This means other step types (partition step, flow step, etc) do not have this attribute, which makes sense since those step types do not require a transaction manager by design (see here).With Java configuration on the other hand, the transaction manager is configurable at the
StepBuilderHelper
level, which is common to all step builders. While this is not an issue in itself, it requires the configuration of something that is not required in the first place, in addition to introducing an inconsistency between the two configuration styles:The transaction manager configuration should be moved down from
StepBuilderHelper
toAbstractTaskletStepBuilder
in order to make this consistent with XML config.The text was updated successfully, but these errors were encountered: