I'm trying to setup a non-transactional tasklet using MethodInvokingTaskletAdapter in a simple definition like this:
Unfortunately, I cannot directly set the required "transaction-attribute" on a <batch:step>-element. Using <batch:tasklet> is not an option, since I don't have any readers/writers.Code:<batch:job id="indexUpdater"> <batch:step id="updateIndexes" tasklet="indexUpdaterTasklet"/> </batch:job> <bean id="indexUpdaterTasklet" class="org.springframework.batch.core.step.tasklet.MethodInvokingTaskletAdapter"> <property name="targetObject" ref="indexUpdaterService"/> [...]
Would the addition of this attribute make sense or is there an other preferred way of achieving this?
Thanks,
Yann


Reply With Quote
