[jboss-user] [JBoss Seam] - Re: Can't inject entityManager into application component?

bfo81 do-not-reply at jboss.com
Sat Aug 26 06:08:19 EDT 2006


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



More information about the jboss-user mailing list