如何在sessionbean中调用entitybean的方法?
代码是这样的
BMPBEANHome bMPBEANHome=null;
bMPBEANHome = (BMPBEANHome) javax.rmi.PortableRemoteObject.narrow(ref,BMPBEANHome.class);
System.out.println("begin to insert...........");
bMPBEANHome.ejbInsertUserinfo(userid, username);
在调用中出现例外,是在调用出现的.
能不能给一个例子给看看
谢谢了