RMI multiple clients

前端 未结 2 706
孤街浪徒
孤街浪徒 2021-01-20 02:10

Does RMI handles multiple clients by itself? i.e.

  1. is it possible to use a server function by multiple clients at the same time?
  2. if no, how can I do s
2条回答
  •  既然无缘
    2021-01-20 02:51

    Yes RMI does handles multiple clients, but you must make your server threadsafe , RMI will dispatch multiple threads into a single server object if multiple clients simultanuosly make methods call on it so if your server isn't threadsafe your application will fail.

提交回复
热议问题