Apr 20th, 2009, 02:16 PM
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:listener class="Ö" />
In my Spring batch job configuration if have the following step:
<batch:step id="logMessageStep" parent="parentStepNoJta">
<batch:tasklet ref="logMessage" >
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?
Apr 20th, 2009, 08:49 PM