All Questions
7 questions
0
votes
2
answers
45
views
Read CSV and write two differents xml files - best practices
I have a batch that reads a .csv file and maps its data into a POJO.
I need to write two XML files as output. Currently, to write these two files, I generated classes via XJC from their XSD.
I am ...
3
votes
1
answer
4k
views
Specify Header and Footer for all file created by MultiResourceItemWriter when writing in multiples files -spring batch
I have a batch that read from data base using JdbcPagingItemReader, process each record from the database in a java class then write it to a file using FlatFileItemWriter. It appends also a header and ...
0
votes
1
answer
492
views
Can I use spring batch writer to for both HTTP post request and write to db
I would like to read a list of records from DB, then iterate over it, and perform the following actions for each record:
Resolve data for generating JSON body, and send HTTP post request.
Update DB, ...
0
votes
1
answer
5k
views
Spring Batch - write to 2 tables at once
I have a Person object that has a list of addresses. My Spring Batch app converts Person JSON recors into Person POJOs and writes them to a database.
Ordinarily, I'd use JdbcBatchItemWriter but I see ...
0
votes
1
answer
2k
views
Spring Batch Writer throws java.sql.SQLException: Unsupported feature
I am facing challenge in retrieving auto generated column of Oracle table in my Spring Batch POC.
This POC reads data from flat file and loads into oracle table. I am trying to use Oracle Sequence to ...
0
votes
1
answer
398
views
writeHeader() still running if appendAllowed set to true?
Good day,
I am creating a spring batch that will write output in a text.
Basically the output will be 1 row header and multiple rows of details.
And then, in the xml, I set
<property name="...
9
votes
2
answers
20k
views
Spring Batch: Writing data to multiple files with dynamic File Name
I have a requirement to get the data from a database and write that data to files based on the filename given in the database.
This is how data is defined in the database:
Columns --> FILE_NAME, ...