Openjpa is not yet jpa 2.1 so this is not supported. Should work for other
providers, if not this is likely their bug

Le 15 sept. 2016 15:07, "ict" <[email protected]> a écrit :

> Hi to all! I've search this question but nothing about.
>
> The question is simple, why in external listner for Entity resource
> injection not work?
>
> Example:
> .....
> @Entity
> @EntityListners({Listner.class})
> public class User {.....}
>
> public class Listner {
>   @EJB ListnerBean listnerBean; //<----THIS NOT INJECTED
>   @PostPersist private void postPers(Object obj){...}//THIS WORK
> }
> .....
>
> Instead in the external interceptor for Stateless, stateful or mdb, the
> injection work work!
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/EntityListner-not-injected-resouces-tp4680130.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to