title: Spring batch - One transaction over whole Job
body: <p>I am using <strong>Spring-Batch</strong> to execute a batch that creates some objects in the database, creates  a file from these objects and then sends the file to a FTP server.</p>
  
  <p>Thus, I have 2 steps : One that reads conf from DB, insert into the DB and creates the file ; the second sends the file to the FTP server.</p>
  
  <p>The problem is when there is a problem with the FTP server, <strong>I can't rollback the transaction</strong> (to cancel the new inserts into the DB).</p>
  
  <p><strong>How can I configure my Job to use just one transaction over the different steps?</strong></p>