We want write a Java 7 program that will boot (via 2 cmd line invokes) as two separate JVM process instances. We want these 2 processes to communicate with each other using native Linux kernel shared-memory IPC resources.
Does anyone have any insight as to which of these 2 approaches may have more merit?
- Use java.nio.* API on /dev/shm
- Use JNI bridge to C++ code that makes native shmctl() system calls
?