Hi All !
I need to implement Spring Batch with Hibernate. My question is about transaction management.
1. Spring Batch writes meta data to job repository using jdbc. (Atleast that is my finding. Please let me know if this is not correct)
2. My ItemWriters would use hibernate to persist data that is read in ItemReaders.
3. I will need to ensure that Spring Batch and Hibernate are running in one single transaction.
It seems to me that I will need to define two transaction managers one for JDBC and another one for hibernate. How can I bring these two different transaction managers to participate in the same transaction ?
any pointers are much appreciated ?
Thanks


Reply With Quote
