title: Difference between a "jta-datasource" and a " resource-local " datasource?
body: <p>The terms "jta-datasource" and "resource-local datasource" are a little vague to me. I'm putting down what I am understanding ( or assuming ) and I'd like you to say where I'm right / wrong.</p>
  
  <ul>
  <li>The same database can be referred to as a jta-datasource or as a resource local datasource</li>
  <li>If mentioned as jta-datasource, then the beans / other classes can use JTA. Hence, UserTransaction interface</li>
  <li>Cannot use <a href="http://docs.oracle.com/javaee/6/tutorial/doc/bncij.html" rel="noreferrer">CMT</a> / <a href="http://docs.oracle.com/javaee/6/tutorial/doc/bnciy.html" rel="noreferrer">BMT</a> if the datasource is resource local </li>
  <li>If mentioned as resource local datasource, transactions are not JTA aware. Code can use EntityTransaction interface but not UserTransaction interface</li>
  </ul>
  
  <p>Thanks!</p>