Spring batch - One transaction over whole Job
问题 I am using Spring-Batch 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. 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. The problem is when there is a problem with the FTP server, I can't rollback the transaction (to cancel the new inserts into the DB). How can I configure my Job to use just one transaction over the