简体   繁体   中英

IPC between .NET and Java client applications

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?

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.

I'm now thinking about JNI to access Mutex and Named pipes, am I going to a right direction?

Any ideas welcome!

Thanks Dennis

I am author of jni4net , open source intraprocess bridge between JVM and CLR. It's build on top of JNI and PInvoke. No C/C++ code needed. I hope it will help you.

You can access WinAPI through JNI(Java) and PInvoke(C#). Use following WinAPI functions: CreateEvent SetEvent WaitForSingleObject CreateMutex ReleaseMutex CreateFileMapping (for share memory) MapViewOfFile UnmapViewOfFile

I would use protobuf .

Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM