English 中文(简体)
如何连接Java和。net前端后端吗
原标题:
  • 时间:2009-05-05 14:10:53
  •  标签:

我有一堆的Java代码编写使用Hibernate框架,原本注定要有一个前端使用jsp编写的。然而,前端的需求已经改变了,我们已经决定一个桌面客户端(将。net编写的)是一个更好地满足用户的要求。

我不真的想浪费年代的代码已经写——任何人都可以建议一套好的工具来编写一个基于文档的web服务接口,我们将能够从。net访问吗?

谢谢,

吉姆

最佳回答

我们重新开发一个应用程序的具体架构描述金融应用程序。我们回顾了几种不同的选项,最后落在使用通过HTTP压缩CSV。

CSV被选中,因为绝大多数的数据将会显示在一个网格前端,我们有非常大的结果集> 250 k行定期压缩真的很好。

我们还研究了使用:

  • ICE, but declined on that due to licensing costs and the need to reinvent so much.
  • Google s protocol buffers via servlets, but declined on that due to lack of C# support (as of last fall).
  • Compressed XML using WOX, but declined on that due to lock-in to a small thesis project for support and XML being too verbose.

产业支持两种不同的选项:

  • SOAP, but that has its own well documented issues.
  • IIOP, J-Integra has a product called Espresso which will allow you to do RMI from a front end.
问题回答

如果你真的想要一个基于文档的服务接口(而不是一个RPC样式web服务架构),你最好的选择是创建基于SOAP的web服务接口。

了一眼Java网站显示,地铁堆栈可能会有所帮助:

Java Web服务

我个人使用一些轻量级RPC协议,xml - RPC或一个国产的。肥皂、国际海事组织、太胖,没有可互操作的,因为它应该。越简单越好。

我们有一个相当大的应用程序使用Java RMI服务器和IIOP。净的互操作性。我们使用IIOP。净与太阳RMI和Bea Weblogic (Oracle)现在没有重大问题。





相关问题
热门标签