Interprocess Communication between C++ app and Java App in Windows OS environment

前端 未结 4 549
醉酒成梦
醉酒成梦 2021-01-05 12:54

We have a C++ application on Windows that starts a java process. These two apps need to communicate with each other (via snippets of xml).

What interprocess communic

4条回答
  •  情歌与酒
    2021-01-05 13:30

    Sockets are nice. They give you the ability to very easily create a blackbox testing layer around each component, as well as run each component on its own machine.

    Security is definitely a concern, but there are a good range of options depending on how important it is. You can use SSL, custom handshaking, password protected logins and firewalls to help secure it.

    Edit: Not something I'd recommend, but there's also shared memory using JNI. Just thought I'd mention it because it's not on your list.

提交回复
热议问题