内联网应用程序之间的通信

发布于 2024-07-24 08:01:07 字数 413 浏览 1 评论 0原文

我有两个独立的 Web 应用程序,都位于同一个 Intranet 中。

两者之一是遗留应用程序,严格来说是静态站点,通过 Apache 提供服务。

另一个应用程序是新的,我目前正在构建一个应用程序,它将是一个带有数据库的动态站点。

在第一个应用程序中,我想要一些表单页面,用于收集信息,并将信息处理(发布到)并保存在第二个应用程序数据库中。

我从未有过应用程序接受来自不同应用程序的帖子,因此我不知道继续的最佳方法。 如果有比发帖更好的主意,请说出来。 另外,我是否需要执行任何特定操作(例如特定配置)才能让第二个应用程序接受来自第一个应用程序的信息。

如果重要的话,我可以完全控制第二个应用程序,到目前为止,我使用 Glassfish 作为应用程序服务器,java 作为语言,并且使用 Spring。

I have two separate web applications, both in the same intranet.

One of the two is a legacy application, strictly a static site, being served via Apache.

The other application is new, one that I am currently building, and will be a dynamic site, with a database.

In the first application I want to have a few form pages, that collect information, and have the information processed (posted to) and saved in the second applications database.

I have never had an application accept a post from a different application, so I do not know the best way to proceed. If there is a better idea than doing a post, please say so.
Also, do I need to do anything in particular, like a particular configuration, to have the second application accept information from the first application.

In case it matters, I have full control of the second application, and thus far I am using Glassfish as the application server, java as the language, and I am using Spring.

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

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

发布评论

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

评论(1

欲拥i 2024-07-31 08:01:07

Yes, you're describing a situation where your new site is basically a RESTful web service providing functionality to your old, legacy site. There is nothing wrong with this architecture ... in fact, it's quite common. :)

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