
Originally Posted by
SanjayaK
Hi,
I am doing a migration work from spring batch 1.1.2 to spring batch 2.1.8. We have an exisitng framework with spring batch 1.1.2 which launches job in one step of parent job. It was perfectly working in 1.1.2 but i am facing error while after migration to 2.1.8 As
Existing transaction detected in JobRepository. Please fix this and try again (e.g. remove @Transactional annotations from client).
I can understand the error. Since it is not allowing to to lauch job since it gets an active transaction in JobRepository of parent job. I got one workout i set validateTransactionState attribute to false in jobRepository. So the parent job launched the child job successfully, but encounterd another problem as the child job got hanged and not even complete. The business logic of ItemWriter is just to print values of model in console.
Please guide us.
Thanks,
SanjayK