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?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122288#4122288
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122288
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user