HELLO!~我自己定义了一个类Molecule implements Serializable, 然后我想把一个Molecule 类的对象用RMI 传递给server, 可是在server 端得到的确实一个空的值,什么也没有,请教!~RemoteIOsrvInterface remoteiosrv = (RemoteIOsrvInterface) Naming.lookup ("//localhost/RemoteIOsrv");
System.out.print("Remote I/O Operation:");
Molecule m = new Molecule("1");
remoteiosrv.remoteOperations(m);其中:public interface RemoteIOsrvInterface extends Remote public class RemoteIOsrv extends UnicastRemoteObject implements RemoteIOsrvInterface 谢谢!~