This content has been marked as final. Show 1 reply
The problem was solved by following this approach:
Changes in components.xml
<core:init debug="@debug@" jndi-pattern="@jndiPattern@" transaction-management-enabled="false" /> <transaction:ejb-transaction/>
Now I can use the @PersistentContext from within the application, but what if I want to use the entity manager because I would like to reduce the amount of usage of EJBs. Ideally I would want to inject the entity manager such as:
@In ("entityManager") EntityManager em;
Any hints on this?