What is the difference between org.springframework.jdbc.datasource.DataSourceTransactionManager
and org.springframework.batch.support.transaction.ResourcelessTransactionManager
<bean id="batchTransactionManager" class=
"org.springframework.batch.support.transaction.ResourcelessTransactionManager" />
<bean id="batchJobLauncher"
class="org.springframework.batch.core.launch.support.SimpleJobLauncher">
<property name="jobRepository" ref="batchJobRepository" />
<property name="taskExecutor">
<bean class="org.springframework.core.task.SimpleAsyncTaskExecutor" />
</property>
</bean>
In the above code is it correct to use resourcelesstransactionmanager? Or should i use datasourcetransactionmanager? What are the differneces and when to use them?