Announcement Announcement Module
Collapse
No announcement yet.
Inheriting tasklet transaction-manager attribute Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inheriting tasklet transaction-manager attribute

    I am trying to enable my batch job steps to use or not use a transaction manager.
    In other words a batch job may have steps that require a TM and other steps that do not.
    Iím attempting to do this through the use of step inheritance

    I have a parent abstract step that looks like this:
    <batch:step id="parentStepNoJta" abstract="true" >
    <batch:tasklet transaction-manager="noTransactionManager" >
    <batch:listeners>
    <batch:listener class="Ö" />
    </batch:listeners>
    </batch:tasklet>
    </batch:step>

    In my Spring batch job configuration if have the following step:
    <batch:step id="logMessageStep" parent="parentStepNoJta">
    <batch:tasklet ref="logMessage" >
    </batch:tasklet>
    </batch:step>

    However the transaction-manager attribute is not being inherited in my concrete step.
    Instead the normal transaction-manager bean is being used.
    Am I missing something or do I not understand how this works?

    Thanks,
    Ed

  • #2
    This is a bug. http://jira.springframework.org/browse/BATCH-1213.

    Comment

    Working...
    X