Go back to 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam

Question :-

A developer writes a stateful session bean FooBean with two local business interfaces Foo and bar. The developer wants to write a business method called getBar for interface Foo that returns a Bar reference to the same session bean identity on which the client onvokes getBar. Which code, when inserted on line 12 below implements the getBar method with the wanted behavior? 10. @Resource SessionContext sessionCtx; 11. public Bar getbar () { 12. 13. }
Return (bar) this;
Return (bar) new FooBarBean();
Return (bar) sessionCtx.lookup("FooBarBean")
Return (bar) sessionCtx.getBusinessObject(Bar.class);
Return (bar) session Ctx.lookup("java: comp/env/ejb/FooBarBean");

Want to practice for 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam ? Click here.