将 Java 与 .NET 集成?

发布于 2024-11-08 17:59:26 字数 231 浏览 0 评论 0原文

因此,我需要将 Java 与 .NET 集成(这是一个大学项目),我被告知要使用 JMS、Web 服务、RMI、REST/JSon。事实上,我不知道从哪里开始(因为我对 SOA 不太了解)...但是我的教授告诉我,我可以使用 NetBeans,因为它有一些集成工具,可以让我更轻松地使用 NetBeans我还可以使用 BPEL 的图形工具,或者我可以在 GlassFish 上使用 ServiceMix...我有点迷失了。有什么帮助吗?谢谢。 :)

So I need to integrate Java with .NET (it's a Project for College) and I was told to use JMS, Web Services, RMI, REST/JSon. The fact is that I don't know where to begin (because I don't know too much about SOA)... But my professor told me that I could use NetBeans because it has some Integration Tools that would make it easier for me and I can also use the Graphical Tool from BPEL, or I could use ServiceMix on GlassFish... I'm kind of lost. Any help? Thanks. :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

相思故 2024-11-15 17:59:26

你的教授是那个听起来很失落的人。

从一个开始 - 哪一个并不重要。

Web 服务是一个很好的起点,因为它们基于 HTTP。 Java EE 和 .NET 都很好地理解 HTTP。

您必须编写客户端和服务器。您可以通过以下方式演示两个平台之间的互操作:以 Java servlet 作为服务器,在 Tomcat 等 servlet/JSP 引擎上运行,然后编写连接到服务器并发出 HTTP GET 或 POST 请求的 .NET 客户端并处理响应。

然后反转角色:编写一个 .NET SOAP 服务器,将其部署在 IIS 上,然后编写一个发出 SOAP 请求并处理响应的 Java 客户端。

这将满足作业的精神并证明要点。

Your professor is the one that sounds lost.

Start with one - it doesn't matter which one.

Web services are a good place to start, because they're based on HTTP. Both Java EE and .NET understand HTTP well.

You have to write a client and a server. You can demonstrate inter-operation between the two platforms by starting with a Java servlet as the server, running on a servlet/JSP engine like Tomcat, and then writing a .NET client that connects to the server and makes an HTTP GET or POST request and processes the response.

Then reverse the roles: write a .NET SOAP server, deploy it on IIS, and then write a Java client that makes a SOAP request and processes the response.

That will satisfy the spirit of the assignment and demonstrate the point.

人疚 2024-11-15 17:59:26

您可以使用 IFRAME 来组合一个最终的 HTML 页面,该页面从 Java 和 .Net 获取内容。

You can use IFRAMEs to put together a final HTML page that sources content from both Java and .Net.

注定孤独终老 2024-11-15 17:59:26

我的猜测是你应该将“JMS”作为提示。看起来你的教授要求你学习/实验集成模式和中间件。

几年前就写过一本关于这方面的优秀书籍: http://www.eaipatterns.com/

Spring Integration 是据我所知,可用于 Java 和 .NET。

my guess is that you should take 'JMS' as a hint. Looks like your professor is asking you to learn about/experiment with integration patterns and middleware.

An excellent book on this has been written years ago: http://www.eaipatterns.com/

Spring Integration is available for Java and .NET as far as i know.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文