Jan 16th, 2008, 10:06 AM
Will ItemReaders need to be transactional after chunk-oriented M4?
I am just coding a custom ItemReader (LDAP) where implementing transactional behavior is painful. This made me wondering whether after chunk-oriented M4 release ItemReaders will still need to be transactional or this concern will be completely pushed up on higher (I assume Chunk) level.
Jan 17th, 2008, 03:57 AM
We're still working through that, and should hopefully have a definitive answer next week. They definitely won't be the same type of transactional as they are now, where they need to worry about rollbacks, since the new ChunkProvider should just give the same chunk back to a ChunkExecutor. However, if you intend your ItemReader to be restartable, then there will need to be some way to 'mark' it's current location. I would add a mark method for now, it can always be modified to fit any interface changes we make fairly easily.