On JBoss it doesn't works too.
Although this should work in AS 5.0, you should use getBusinessObject
to obtain a self-reference
It also doesn't work. I got nullPointerExceptions.
Any resolution?
class
public class TestBean implements TestLocal, TestRemote {
@Resource
SessionContext ctx;
// @EJB
Test2Local test2Bean;
public TestBean() {
super();
test2Bean = ctx.getBusinessObject(TestLocal.class);
}
}
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236569#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...