Solved

Java Interop with C#

Posted on 2008-10-01
2
491 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
Comment Utility
0
 
LVL 1

Author Comment

by:mdw233
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now