How to share object between java applications?

前端 未结 6 1738
暖寄归人
暖寄归人 2020-12-11 03:53

I have 2 separate Java Applications running at a time. (Two separate javaw.exe) I need to share an object between them while they are running.

What is the simplest

6条回答
  •  醉梦人生
    2020-12-11 04:26

    Objects and their instance variables can be shared between threads in a Java program, which is pretty simple task.
    If you require to share objects (instance of it) between two programs, with out data storage, next choise would be using RMI Socket Communication or Java messaging service.

提交回复
热议问题