synchronized & RMI
1 posts in topic
Flat View  Flat View

Posted By:   nuno_oliveira
Posted On:   Saturday, September 7, 2002 10:08 AM


Can I use synchronized for a remote method invocation? Does the remote RMI runtime care to lock the object skeleton before executing the method ? Can I trust this to have the same semantics as in a local context ?


Re: synchronized & RMI

Posted By:   Thomas_Wheeler  
Posted On:   Monday, September 9, 2002 01:46 PM

I'm not sure whether the client-side stub or server-side skeleton will be synchronized. However, if the actual method to be executed on the server is declared synchronized, only one thread at a time will be able to execute in that method, regardless of whether the origin of the invocation is local or remote. Standard Java semantics apply here.


About | Sitemap | Contact