You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First, thanx for your framework, it's helping a lot :)
I saw that your integration with spring batch is not working anymore.
In BeanIOFlatFileItemWriter, you get a new instance of
TransactionAwareBufferedWriter. The constructor has changed for
TransactionAwareBufferedWriter(FileChannel, Runnable for callback) since Nov
13, 2012.
I change for my code the method like that :
/**
* Creates a buffered writer opened to the beginning of the file
* for the given file channel.
*/
private Writer createBufferedWriter(FileChannel fileChannel, String encoding) {
try {
Writer writer = Channels.newWriter(fileChannel, encoding);
if (transactional) {
writer = new TransactionAwareBufferedWriter(fileChannel, new Runnable() {
@Override
public void run() {
Stream.this.destroy();
}
});
((TransactionAwareBufferedWriter) writer).setEncoding(encoding);
}
else {
writer = new BufferedWriter(writer);
}
return writer;
}
catch (UnsupportedCharsetException ex) {
throw new ItemStreamException("Bad encoding configuration for output file " + fileChannel, ex);
}
}
Do you think there is some inconsistency now? I don't but ... :)
Regards,
Phil
Original issue reported on code.google.com by rolez.ph...@gmail.com on 8 Apr 2014 at 8:17
The text was updated successfully, but these errors were encountered:
I find this : https://groups.google.com/forum/#!topic/beanio/N-FRNHIZcCc
sry,
i won't downgrade my spring-batch version ^^ I'll continue with my patch
Thx
Original comment by rolez.ph...@gmail.com on 8 Apr 2014 at 9:00
Original issue reported on code.google.com by
rolez.ph...@gmail.com
on 8 Apr 2014 at 8:17The text was updated successfully, but these errors were encountered: