Hi,

when I try to inject some SessionBean with

@In( create=true )
MySessonBean mySessionBean

a "could not set field value" Exception is thrown.

The documentation states that "If the context variable is null, an instance of 
the component is instantiated by Seam.". 

If I create a 
@Factory( "mySessionBean" ) 
public MySessionBean makeMySessionBean(){ return new MySessionBean(); }

The whole stuff works.

Am I doing something wrong? Or is the documentation wrong. When exactly do I 
need a @Factory?

Thanks,

Florian

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

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

Reply via email to