<div dir="ltr">Providers should be written as POJO&#39;s. There&#39;s no support for EJBs, CDI or any other JavaEE features. You need to retrieve the EntityManager yourself using the good old Persistence class.</div><div class="gmail_extra"><br><div class="gmail_quote">On 15 September 2015 at 01:53, alex orl <span dir="ltr">&lt;<a href="mailto:alex_orl1079@yahoo.it" target="_blank">alex_orl1079@yahoo.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><span class=""><div>I&#39;m working with jboss wildfly 9. I have a provider deployed as module into the   modules  directory.</div><div>Then i have a jpa project with DAO pattern writing and reading inside my database. I want to handle the DAO transaction using JTA but in order to make the DAO class visibile to myprovider i need to put the DAO JPA project inside the modules directory too.</div></span><div dir="ltr">Now i m facing  the real problem: it seems i cannot use the PersistenceContext annotation to inject the entity manager into my EntityManager variable wich is always null. Why i cannot inject the a context into a jar modules? What am i wrong?</div></div></div><br>_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br></blockquote></div><br></div>