Content based routing and java batch JSR 352
(jBeret
, Spring Batch
)?
Have tried to implement some simple "real world" batch jobs because the "hello world" was looking promising. Seems that I haven't got the concept right - but the actual release seam pretty useless for "real world" examples.
- read 5mio lines (ItemReader works fine)
- write to three different filed/resources based on the content of the line read
The "intuitive" way would be to:
configure three writer (e.g.
ItemWriterA
,ItemWriterB
,ItemWriterC
). BUT: onle one writer is possible in a chunks - why this restriction?add a decision and use the writer based on your decision. BUT: decisions can't be included in cunks - why this restriction?
What's the right approch doing this with Java Batch JSR 352
?
Any hints are welcome.