IPC between .NET and Java client applications

I need to get two different client applications without any brokers or servers. What is the best method for IPC consists of two processes: Java and .NET?

It should be able to work on a multi-user terminal server, so no socket is needed. I want it to be light and simple, something to turn on and start, so no RMI / WS is required.

Now I think of JNI to access Mutex and Named pipe, am I going in the right direction?

Any ideas are welcome!

Thanks Dennis

+6
java c # ipc
source share
3 answers

You can access WinAPI through JNI (Java) and PInvoke (C #). Use the following WinAPI functions: Create a SetEvent event WaitForSingleObject CreateMutex ReleaseMutex CreateFileMapping (for shared memory) MapViewOfFile UnmapViewOfFile

+4
source share

I am the author of jni4net , an open source interprocess bridge between the JVM and the CLR. It is built on top of JNI and PInvoke. No C / C ++ code required. Hope this helps you.

+6
source share

I would use protobuf .

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

0
source share

All Articles