Link to home
Start Free TrialLog in
Avatar of mdw233
mdw233

asked on

Java Interop with C#

Hi All,

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!
-Matt
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mdw233
mdw233

ASKER

Thanks ... it reaffirms what I have already found in my research, but it has persuaded me that my only 2 options are a Java - C++ - C# Interop or using a C# web service invoked by Java.