Solved

Java Interop with C#

Posted on 2008-10-01
2
498 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

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.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

696 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