Maybe it's because of the phase. Injection by default only takes part when 
beginning the INVOKE_APPLICATION phase. I think the init() method gets called 
before the injection and so the EntityManager is null.

Try to annotate the bean with @Intercept(ALWAYS).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967626#3967626

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967626
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to