Re: Do classes implementing Remote interfaces need to be Serializable?

Bob Scheifler <[email protected]> Thu, 28 Sep 2006 12:48:29 -0400
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
> The UnicastRemoteObject details cause "stub replacement" to occur for any
> attempt to serialize the UnicastRemoteObject.  The result is that noone
> ever sees the object, but instead receives the remote proxy implementation.

Careful with your wording.  Automatic stub replacement will occur for
any attempt to marshal the remote object in a JRMP call or into a
MarshalledObject.  It does not occur during plain serialization,
and does not occur over some other RMI implementations (IIOP, JERI).

- Bob

===========================================================================
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