It's in fact a doubt that i have about JTA/Resource Local transactions. Resource Local says that the application should manage the transactions of the entityManager, that's make sense since it's in Tomcat that don't have CMT, or BMT.
But here is what i dont understand:
JTA is not only for the Container transaction stuff? Shouldnt it be <non-jta-data-source>? I set it to non-jta and it worked too.
So my question is: When to use JTA/Non-JTA data-sources when using RESOURCE_LOCAL transaction?