1. Overview:
Experienced kids know that when using stream in RMI, the serialization will fail. Because serialization is implemented through the stream, it is impossible to serialize the stream. The only way to solve this problem is to change the stream in a lower-layer mode and then make remote calls.
2. Project homepage:
Http://openhms.sourceforge.net/rmiio/
3. Download rmiio API jar
Http://sourceforge.net/projects/openhms/files/rmiio/rmiio%202.0.0/
4. rmiio Java API document
Http://openhms.sourceforge.net/rmiio/apidocs/index.html
5. Common rmiio classes
Sender, inputstream to remoteinputstream.
// "Is" is an inputstream. remoteinputstreamserver RISS = new simpleremoteinputstream (is); remoteinputstream RIS = RISS. Export ();
Receiver, remoteinputstream to inputstream.
// RIS is a remoteinputstream. inputstream is = remoteinputstreamclient. Wrap (RIS );