Java RMI:Updating client side objects in the server

后端 未结 2 1241
再見小時候
再見小時候 2020-12-12 05:02

I\'m trying to implement a middle-ware for group communication in a distributed system using Java RMI.

In there, I need to send an object to the server and modify it

2条回答
  •  我在风中等你
    2020-12-12 05:38

    RMI isn't magic. It is Remote Method Invocation. You have to call a remote method to get something to happen in a remote place. Just changing a variable and having it magically propagate across a network isn't within the scope of RMI.

    Whatever you want to happen remotely has to be defined by methods in your remote interface(s).

提交回复
热议问题