Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IPC between .NET and Java client applications

Tags:

java

c#

.net

ipc

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

like image 675
Dennis C Avatar asked Nov 25 '08 13:11

Dennis C


2 Answers

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.

like image 149
Pavel Savara Avatar answered Nov 06 '22 15:11

Pavel Savara


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

like image 24
macropas Avatar answered Nov 06 '22 16:11

macropas