Re: RMI return data (method call) message format

Esmond Pitt FACS <[email protected]> Sun, 14 Jun 2009 15:28:23 +1000
Newsgroups gmane.comp.java.sun.rmi
Organization Melbourne Software Company
Message-ID <20090614052623.JTKF20096.nskntotgx03p.mx.bigpond.com@toshibakx1wgjb>
Alex

If you're doing this kind of work you should be able to read a protocol
specification. See the RMI Specification #10.2.2. A reply message is a
ProtocolAck 0x42 Returns; Returns is ultimately a ReturnData; ReturnData is
0x51 ReturnValue; and ReturnValue is specified in #10.3 as 0x01
UniqueIdentifier Value(opt) or 0x02 UniqueIdentifier Exception. Value and
Exception are transferred via Serialization so from there you go to the
Serialization Specification to find the format of a serialized object. If
the method is void, the optional Value is absent of course.

EJP

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html