Questions tagged [itemwriter]

ItemWriter is a basic interface for generic output operations in Spring Batch. (This tag must be used only with spring-batch posts)

ItemWriter is a basic interface for generic output operations in Spring Batch.

51 questions
0
votes
1 answer

How to enable more detail in log for spring batch library

Good day, I have a Spring batch, that using org.springframework.batch.item.support.CompositeItemWriter to write data into db. The following is the writer code in my xml:
Panadol Chong
  • 1,793
  • 13
  • 54
  • 119
0
votes
1 answer

ItemWriter commit juste the first commit-interval

I'm trying to select data from database, update each object and then update the database in an itemwriter. I tried to flush DAO after each update but it's change nothing. The configuration is very basic with a reader, a writer and a commit-interval…
Youri C.
  • 133
  • 1
  • 12
0
votes
1 answer

Spring Batch how to persist into DB with Object that has list of other objects

I have a scenario where i have to persist an object called DummyObject which has list of OtherObject. public class DummyObject{ private List firstOtherObjectList; private List secondOtherObjectList; private String…
user9232119
  • 271
  • 1
  • 2
  • 6
0
votes
1 answer

Faster method to write items to mariadb other than jpaitemwriter

I have a batch job that reads from and Oracle database, stores JPA with JPA ITEM READER and writes to MariaDB with JPA ITEM WRITER. Is there a way to do bulk insert into MariaDB or a bulk execute the way mongodb has bulkoperations.execute()…
Momo
  • 1
0
votes
2 answers

How to write the output from DB to a JSON file using Spring batch?

I am new to spring batch and there is a requirement for me to read the data from DB and write in to JSON format. whats the best way to do this ? Any api's are there? or we need to write custom writer ? or i need to user JSON libraries such as GSON…
Dammy
  • 23
  • 1
  • 5
-1
votes
1 answer

How to perform Update Operation in Spring Batch ItemWriter

I am writing a spring batch job wherein ItemReader I am reading from the database and apply some rules in Processor and want to update in ItemWriter. I could not able to figure it out how to perform update operation in ItemWriter class. I tried to…
1 2 3
4