[jboss-user] [JBoss Seam] - Inject EBJ
kayart
do-not-reply at jboss.com
Mon Mar 19 04:19:17 EDT 2007
I'm working on Seam1.2 and GlassFish.
Plase tell me how to inject ejb into ejb.
---class1---
@Stateless
@Name("action1")
public class Action1Bean implements Action1Local {...}
---class2---
@Stateless
@Name("action2")
public class Action2Bean implements Action2Local {
@EJB private Action1Local acton1;
}
This code is well. action1 is injected by @EJB annotation.
---class2'---
@Stateless
@Name("action2")
public class Action2Bean implements Action2Local {
@In private Action1Local acton1;
}
In this case, action1 is not injected by @In annotation.
Spacial configuration is required?
---Kay
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029219#4029219
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029219
More information about the jboss-user
mailing list