IPC between Java and C++

后端 未结 3 1476
逝去的感伤
逝去的感伤 2021-02-11 10:52

My goal here is to make two separate applications (one in Java and other in C++, both on the same machine) read from the same SQLite database. The C++ implementation already wor

3条回答
  •  天涯浪人
    2021-02-11 11:24

    Actually I was wrong. I don't need to use JNI to use named pipes in Java. I have successfully communicated these two processes using basic techniques. In java I have just used FileOutputStream and FileInputStream to communicate with the named pipes.

    This link was specially useful to me:

    http://carminedimascio.com/2014/01/named-pipes-with-java/

提交回复
热议问题