Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

communication between Java and C#

I found out that there is a .Net toolkit called GCT - Group Communication Toolkit that is the C# version of JGroup. I want to know whether this and JGroup can be connected together to make java and C# clients communicate with each other. If not, what would be the best option to make a java program and a C# program communicate? One other option I came across is XMPP implementation. I require very fast message passing between those two programs that are running in the same computer. The main requirement is that either of this program would send a message to the other, when some particular events are triggered. any ideas are welcome.

like image 892
sura Avatar asked Dec 17 '22 04:12

sura


2 Answers

XMPP isn't what you want. It's designed for passing messages between computers with a central server.

I'd recommend using sockets to pass data between the apps. See the System.Net.Sockets.Socket class in C# and the java.net.Socket class in Java.

like image 100
Moishe Lettvin Avatar answered Jan 02 '23 16:01

Moishe Lettvin


Where I work we use ICE (http://www.zeroc.com/). It lets us marshal binary data between java and C#. It's not bad.

like image 42
jonnii Avatar answered Jan 02 '23 14:01

jonnii