问题描述
我必须得到没有任何经纪或服务器的两个不同的客户端应用程序的谈话。什么是IPC的最佳方法beween两种工艺,Java和.NET?
I must get two different client application talk without any kind of broker or server.What is the best method for IPC beween two process, Java and .NET?
它必须能够在多用户termainl服务器的工作,所以没有插座,请。我希望它重量轻,操作简单,一些插件和运行,所以没有RMI / WS吧。
It must able to be work in multi-user termainl server, so no socket please.I wish that it is lightweight and simple, something plug and run, so no RMI/WS please.
我现在想JNI来访问互斥和命名管道,我是去一个正确的方向?
I'm now thinking about JNI to access Mutex and Named pipes, am I going to a right direction?
任何想法表示欢迎!
感谢丹尼斯
推荐答案
您可以通过JNI(Java)和PInvoke的(C#)访问WinAPI的。使用以下WinAPI的功能:CreateEvent的SetEvent的WaitForSingleObject的CreateMutexReleaseMutex的CreateFileMapping(为共享内存)MapViewOfFileUnmapViewOfFile
You can access WinAPI through JNI(Java) and PInvoke(C#).Use following WinAPI functions:CreateEventSetEventWaitForSingleObjectCreateMutexReleaseMutexCreateFileMapping (for share memory)MapViewOfFileUnmapViewOfFile
这篇关于.NET和Java客户端应用程序之间的IPC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!