Click to See Complete Forum and Search --> : RMI + threads


Paul Moser
May 3rd, 2000, 11:20 AM
I have seen no mention in what I have read about RMI of thread safety. An object with a remote interface can be manipulated by both client(s) and server - what is to stop, for example, the server updating the object whilst the client queries it? Is it neccessary for the programmer to use synchronisation or does the JVM only allow one process at a time to use an object?

Thanks in advance

Paul

kib63613
May 3rd, 2000, 07:47 PM
If I do not remeber wrong, you need to synchronize it manually. RMI server will not help you
take care of this situation. I have not rembered where I see the relative information. But it does
exists .
good luck,
Alfred Wu