History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BATCH-382
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Robert Kasanicky
Reporter: Lucas Ward
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring Batch

StaxEventItemWriter should buffer output

Created: 23/Feb/08 07:01 PM   Updated: 06/Mar/08 07:36 AM
Component/s: Infrastructure
Affects Version/s: 1.0.0.m5
Fix Version/s: 1.0.0.rc1

Time Tracking:
Not Specified


 Description  « Hide
The StaxEventItemWriter continually writes, so that it has to reopen the file again on rollback. It would be better (considering changes done to the ItemWriter interface) to buffer the output. In the event of a rollback, the contents of the buffer could be thrown away. A flush would actually write.

 All   Comments   Work Log   Change History   FishEye   Related Builds      Sort Order: Ascending order - Click to sort in descending order
Robert Kasanicky - 05/Mar/08 08:24 AM
"Write on flush" applies equally to StaxEventItemWriter and FlatFileItemWriter - updated issue heading

Robert Kasanicky - 06/Mar/08 07:35 AM
created separate issue for FlatFileItemWriter and edited the heading back to the original form

Robert Kasanicky - 06/Mar/08 07:36 AM
StaxEventItemWriter now buffers items and writes them to file on flush()