内联网应用程序之间的通信
我有两个独立的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您描述的情况是您的新站点基本上是一个 RESTful Web 服务< /a> 为您的旧站点提供功能。 这种架构没有任何问题……事实上,它很常见。 :)
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. :)