I am new to JPA 2 and I want to find out which are the best practices for handling an EntityManager
on RESOURCE_LOCAL
and with JTA. From what I have read, I should be able to make a dependency injection, but I do not quite understand how.
I am using EclipseLink as an implementation.