Hmm, C seems like the winner here. The other options look a bit convoluted. Why complicate things when you can just use the good ol' transaction approach?
I'm not sure, but I think B) Context. Ctx = new InitialContext();UserTransaction utx = (UserTransaction)ctx.lookup(''java:comp/UserTransaction'');utx.begin();entityManager.merge(emp);utx.commit();. entityManager.lock(emp);EntityManager.merge(emp); might be the correct answer.
Dalene
1 months agoCeola
1 months agoDominga
1 months agoSerina
7 days agoMaurine
1 months agoJennie
2 days agoMarlon
16 days agoLynelle
1 months agoJacinta
2 months agoBettye
20 days agoColene
1 months agoLasandra
1 months agoIrene
2 months agoBeata
2 months agoColeen
2 months agoRonnie
2 months agoShayne
3 months agoRosendo
3 months ago