Is it possible to have InterProcess communication in Java?

Do I have two Java programs, each of which runs in its own JVM instance? Can they interact with each other using any IPC method such as Shared Memory or Pipes? Is there any way to do this?

+3
source share
5 answers

Yes; D-BUS and Tubes are easy to use, and cross-platform. D-BUS is useful for general IPC messaging and for sending mass data.

You can also open a TCP or UDP socket on a local host if you need to support multiple clients connecting to a central server.

UNIX Java, JNI.

+3

http://java.sun.com/javase/technologies/core/basic/rmi/index.jsp

Java Remote Method Invocation (Java RMI) Java- Java-, Java Java *, , , RMI , - .

+2

. RMI , Java Spaces.

+1

MemoryMappedByteBuffer Java NIO .

+1

IPC ( ) Apache, Plasma.

( '17) JVM, , Spark, , , .

, IPC, double, long , /; . -, (-JVM) . Java IPC, .

0

Source: https://habr.com/ru/post/1707791/


All Articles