Re: Stub thread safety

Peter Jones - JavaSoft East <[email protected]>
Newsgroups gmane.comp.java.sun.rmi
Message-ID <20050223234418.GL21335@east>
> The RMI specification is silent on the question of whether RMI stubs
> are thread-safe *in the client*. Of course they are, and they would
> be in any useful implementation, but it's a curious omission from
> the specification. Is it deliberate? i.e. is it really envisaged to
> permit a non-thread-safe implementation of stubs?

No, it's not deliberate in the sense that non-thread-safe stubs are
intended to be considered conforming.  The silence on this point is
because the thread safety requirement of stub objects seems implicit.
I'd say that in general, Java objects with no externally-visible
mutable state are expected to be thread-safe unless specified
otherwise.

-- Peter

===========================================================================
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.