[jboss-user] [EJB 3.0] - Re: Regression: Unable to deploy self referencing EJB3 sessi

krokodylowy do-not-reply at jboss.com
Wed Jun 10 03:32:39 EDT 2009


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#4236569

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



More information about the jboss-user mailing list