I have a service which has to perform the following steps in sequence.
1) insert database records
2) commit
3) call external service (This service need to see the inserts in step 1)
4) more inserts
5) commit
Currently the external service is not able to see the inserted rows. Please suggest how to make the commit happen before the external call. I am using Spring JPA/Hibernate.
Thanks