如何集成的Java与.net? [英] How can I integrate Java with .Net?

查看:242
本文介绍了如何集成的Java与.net?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个SDK,它是Java提供另一种SDK,可用于.Net和希望写他们两个接口一个单一的应用程序。我想我会需要使用跨平台通信架构,可以支持命名管道(或其他内存通信),什么是最好的选择吗?

I have one SDK that is available in Java and another SDK that is available for .Net and would like to write a single application that interfaces with both of them. I imagine I will need to use a cross platform communication framework that can support named pipes (or other in memory communication), what is the best choice?

在一些调查研究,我发现黑森州 - 没有人知道的事情该项目的成熟度?

After some more research I found Hessian -- does anyone know anything about the maturity of this project?

推荐答案

根据您的体系结构(强或松散耦合),你有几种选择:

Depending on your architecture (strongly or loosely coupled), you have several options:

  1. 黑森州:快速和行之有效的C#和Java(使用Spring和Tomcat,C#的客户端部署的Java服务)之间。不要忘记,黑森州基本的Java RMI的可互操作的版本,没有痛苦 - RPC一路下滑。工程于MS CLR和Mono 2。

  1. Hessian: fast and works well between c# and Java (Java service deployed using Spring and Tomcat, C# client). Don't forget that Hessian is basically an interoperable version of Java RMI without the pain - RPC all the way down. Works on MS CLR and Mono 2.

IKVM:强耦合,您有效地运行Java SDK的.NET,而无需重新编译。 IKVM是pretty的成熟,具有OpenJDK的整合工作。工程于MS CLR和Mono 2。

IKVM: Strong coupling, you effectively run your Java SDK in .NET without having to recompile. IKVM is pretty mature, having integrated work from the OpenJDK. Works on MS CLR and Mono 2.

Web服务:松散耦合,互揭SDK为Web服务的一部分,整合,都可以。在这里有一点对于立即值很多有趣的工作。

Web Services: Loose coupling, expose portions of each SDK as Web Services, integrate as you please. Lots of fun work to be had here for little immediate value.

不要忘了,你可以用这些方法都一出戏 - 没有像让你的脚湿,并在学习的过程中

Don't forget you can have a play with each of these approaches - nothing like getting your feet wet and learning in the process.

这篇关于如何集成的Java与.net?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆