title: What is difference between @Resource UserTransaction and EntityManager.getTransaction()
body: <p>Can anybody explain what is difference between :</p>
  
  <pre><code>@Resource
  UserTransaction objUserTransaction;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>EntityManager.getTransaction();
  </code></pre>
  
  <p>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.</p>