@Transactional annotation and conversations
Introduction
We should support scope-independend injection of EntityManagers and add an @Transactional annotation to mark methods that are transactional within the specific scope. Transaction-types should be JTA and resource-local.
Problems
- The @Transactional interceptor needs to know the current scope and persistence-unit
EntityManager-injection should be decoupled from specifying a unit-name (like EJB does), i.e. support the name-attribute of @PersistenceContext