What is difference between @Resource UserTransaction and EntityManager.getTransaction()
Posted
by Nitesh Panchal
on Stack Overflow
See other posts from Stack Overflow
or by Nitesh Panchal
Published on 2010-03-25T15:52:17Z
Indexed on
2010/03/25
15:53 UTC
Read the original article
Hit count: 253
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.
© Stack Overflow or respective owner