We have our own transactioninterceptor that proxys certain classes for our services. I have an ItemReader that does an update using one of these wrapped service classes. ( Note - the ItemReader is not wrapped/proxied via the transacitoninterceptor). I then have the reader throw an exception, yet the update transaction is not rolled back for some reason. I was expecting the transaction to be rolled back automatically. It's not clear to me how Spring Batch interacts with our transaction interceptor.
Thoughts? Here is the job code. Am I missing a parm of some sort?
<job id="fsaFile" xmlns="http://www.springframework.org/schema/batch">
<chunk reader="fsaReader" writer="fsaWriter" commit-interval="1">