javaobject-sharing

How to share object between java applications?


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 way to achieve this without having any permanent storage?


Solution

  • 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.