What is difference between @Resource UserTransaction and EntityManager.getTransaction()
- by Nitesh Panchal
Hello,
Can anybody explain what is difference between :-
@Resource
UserTransaction objUserTransaction;
and
EntityManager.getTransaction();
And also what is container managed transaction? and how should i do it in my session facade if i want to insert three rows in table in transaction.