configuring RMI host so that it should know which client port is accessing it

前端 未结 2 1112
悲&欢浪女
悲&欢浪女 2020-12-12 04:37

I have been working on spring RMI and I have set up a host and one client.

Below is the code of my host. I want to modify it in such a way that host should know whic

2条回答
  •  一向
    一向 (楼主)
    2020-12-12 05:16

    configuring RMI host so that it should know which client port is accessing it

    1. There is no 'configuration' of the RMI host that will deliver that information.

    2. The client port information is completely and utterly useless.

      • It isn't unique per client.
      • It isn't fixed per client.
      • It can and will change over the life of the client.

    It sounds like a case for the Remote Session Pattern to me.

提交回复
热议问题