Need to read a flat-file using spring batch and push success records into IBM MQ using EJB (MDB) hosted in WebSphere server and error records should be written to a flat-file. Is it better practice to have EJB in the processor or in writer ?
Asked
Active
Viewed 62 times
1 Answers
0
push success records into IBM MQ using EJB (MDB) hosted in WebSphere server
This is a write operation so it is better implemented with an ItemWriter
.
error records should be written to a flat-file
Those records can be written to the file using a SkipListener
depeneding on when the error occurs (during the process or the write, see methods onSkipInProcess
and onSkipInWrite
).

JoshMc
- 10,239
- 2
- 19
- 38

Mahmoud Ben Hassine
- 28,519
- 3
- 32
- 50