Is it possible to use RMI bidirectional between two classes?

后端 未结 8 2014
慢半拍i
慢半拍i 2020-12-15 08:16

I want to share some information between two classes (A and B), which are running in different java programs. Instead of writing a whole communication protocol I want to use

8条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 09:04

    Both JVMs would need to implement RMI services. But that is really very easy look at the various classes in java.rmi.

    What you can't do is somehow use one RMI connection and do two way communication.

提交回复
热议问题