Making sure JPA commits my transaction before another service accesses the data
问题 It feels so simple: I have a ViewScoped bean (JPA2 + EE6 + Seam3, if that matters) where the user of the web application can invoke a method like this: public void save() { doEntityManagerStuff(); // manipulates data in the database callRemoteWebservice(); // which is to read said data and propagate it to other systems } Unfortunately, save() starts a transaction at the opening curly bracket and doesn't commit it before the closing bracket , meaning that the new data is not available to the