This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i have implement two container managed session bean (beanA, beanB), and they are in the same applications. I can call beanA through a client program by following code: Context ctx = new InitialContext(); beanARemote beanA = (beanARemote )ctx.lookup("beanA");
and i can call beanB through beanA as follow Context ctx = new InitialContext(); beanBRemote beanB = (beanBRemote)ctx.lookup("beanB");
My question is , if beanA and beanB is in the same EJB container, i can't get the local interface through context.lookup("beanB")? Please kindly advise me on this.....