This content has been marked as final.
Show 1 reply
-
1. Re: Disabling Seam Transaction Managment and Acquiring Entit
fady.matar Jan 22, 2008 11:37 AM (in response to fady.matar)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?