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