Call another EJBTag(s): Servlet/JSP Jaguar/EAServer

InitialContext ctx = new InitialContext();
Object objref = ctx.lookup("MyPackage/MyEJB");
MyEJBHome home = (MyEJBHome)
   PortableRemoteObject.narrow(objref, MyEJBHome.class);
return (MyEJB) home.create();



If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2011
[ home ]