What is the best approach for IPC between Java and C++?

前端 未结 5 982
日久生厌
日久生厌 2020-12-08 11:52

I would like to implement a robust IPC solution between a single JVM app (one process, potentially multiple threads) and a native C++ application that is linked to a C++ dll

5条回答
  •  情歌与酒
    2020-12-08 12:47

    mmm - DLLs are not processes, so I'm assuming you mean IPC between your Java app, and some other native application that is linked to the DLL. Sockets, for certain, are the way to go here. It will make everything easier for you.

    Another option would be to use JNI to talk to a DCOM implementation, but I don't think you'll gain much (other than having to deal with the headaches of COM and JNI :-) ).

提交回复
热议问题