Solved

Java Interop with C#

Posted on 2008-10-01
2
494 Views
Last Modified: 2012-05-05
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
0
Comment
Question by:mdw233
2 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 22620667
0
 
LVL 1

Author Comment

by:mdw233
ID: 22626746
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.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to debug htl and js pages 8 38
Selenium docs api java index 3 48
Where can I find a virus scanner for XP SP2? 22 55
C# Linq Select From List 3 10
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question