Questions tagged [compositeitemwriter]

20 questions
0
votes
3 answers

Spring Batch - Getting a DeadlockLoserDataAccessException when trying to read/write to the same table

I am working on a Spring Batch application that will Read unprocessed data from Table A, process the Data, Insert the processed Data to Table B, and then Update the row in Table A to PROCESSED. However, while Inserting the data into Table B works…
Karson074
  • 127
  • 3
  • 14
0
votes
0 answers

onWriteError not working for MongoItemWriter

Exceptions are not reaching the onWriteError method of my ItemWriteListener: public class KeywordsListener implements ItemWriteListener { @Override public void onWriteError(Exception exception, List
0
votes
1 answer

Writing List of Items using JdbcBatchItemWriter

Currently i am using JpaItemWriter to write the list of objects as below which is working fine. Now i want to change the JpaItemWriter to JdbcBatchItemWriter due to performance issue. public class MyItemWriter implements…
TikTik
  • 347
  • 2
  • 8
  • 22
0
votes
1 answer

Writing data into a InputStream with FlatFileItemWriter

I am trying to write data into InputStream rather than to a File. My Writer class extends FlatFileItemWriter I see FlatFileItemWriter<> has the option to write data to InputStream I am setting the resource like this setResource(new…
0
votes
1 answer

Spring batch commit interval for CompositeItemWriter

How does spring batch identify the commit interval in a compositeItemWriter? If my commit-interval=50000, and I have a CompositeItemWriter, which has 4 different writers included, each of which is passed a list of 50000 records. Is the transaction…
Radhika
  • 91
  • 1
  • 13
1
2