如果在一个EJB里调用另外一个EJB
以下列方式
在一个ejb中通过jndi查找另一个ejb对象
InitialContext ctx = null;
ctx = new InitialContext();
Object homeObject = ctx.lookup("ejb/RemoteTransferHome");
RemoteTransferHome piHome = (RemoteTransferHome)javax.rmi.PortableRemoteObject.narrow(homeObject, RemoteTransferHome.class);