I used Spring Batch frameWork make a batch application.I have a question about it.
My batch Read 1000000 items from CSV file,and Write to DB.if there is a exception,rollback all.
set the commit-interval < 1000000:if hava a exception can't rollback all;
set the commit-interval >= 1000000:there is a outofmemoryError;
how can i do about transactionManager?