[jboss-user] [JBoss Seam] - Re: EntityManager is Null inside Constructor

EricJava do-not-reply at jboss.com
Sun Feb 3 10:27:26 EST 2008


Yes, if you think about it, there's no way injection could occur before the constructor.  There's no object to inject into!

In all my Seam managed components, the constructor does little or nothing beyond setting default values for some fields.

You can use the @Create annotation (I believe it is) to run some method after construction and injection have occureed.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125857



More information about the jboss-user mailing list