Java RMI and thread synchronized

Is it possible that a client access a synchronized method of a remote object? If yes, how and in which version JDK it's availble?
[137 byte] By [Juliana_BRa] at [2007-11-27 2:29:20]
# 1
Yes, this has been available since 1.1Simply put the word 'synchronized' in the signature.Is it a wise thing to do? Now that should draw some feedback.
cooper6a at 2007-7-12 2:42:26 > top of Java-index,Core,Core APIs...
# 2
So a client can call a synchronized method normaly since version 1.1.. I don't think that is a good ideia, but a person had asked about this and I can't found anything about it.. maybe because it's not a wise thing. Do you know any application that use this ideia?Thank
Juliana_BRa at 2007-7-12 2:42:26 > top of Java-index,Core,Core APIs...
# 3
Do you know any application that use this ideia?No. This is why I thought there might be some interesting feedback.
cooper6a at 2007-7-12 2:42:26 > top of Java-index,Core,Core APIs...
# 4

in the Java RMI FAQ

" B.5 I have local objects that are synchronized. When I make them remote, my application hangs. What's the problem?

What you encountered was distributed deadlock. In the local VM case, the VM can tell that the calling object "A" owns the lock and will allow the call back to "A" to proceed. In the distributed case, no such determination can be made, so the result is deadlock.

Distributed objects behave differently than local objects. If you simply reuse a local implementation without handling locking and failure, you will probably get unpredictable results. "

DarkTwina at 2007-7-12 2:42:26 > top of Java-index,Core,Core APIs...