Java Interop with C#
Posted on 2008-10-01
I have developed software in C# to read events from a Telecommunications system and show them real time. This telephone system allowed me to write C++ to it which I then send to C# in order to broadcast messages across a network using .NET remoting. This all works great.
Now, I am trying to integrate the software with a new telephone system ... One in which I have to write JAVA to. My challenge is to write the JAVA interface and then broadcast messages via .NET remoting.
The question I have is: What is the best way to do this? I have read in other places that I can Interop JAVA to C++ and then Interop C++ to C#. Like I said, I am already Interoping C++ to C#, so this would only be adding the JAVA to C++ Interop, but I am hesitant to do that. Even just Interoping C++ to C# is not very efficient because the methods must be static and therefore objects must be instantiated every time I call a method. The other option that I was considering is to write a C# service that I could consume through JAVA, but again I question performance in a large transaction environment.
I have done some research on the topic, but I seem to find the best answers in this forum, so I figured I would seek the community's advice.
As always, thanks in advance for any help!