架构:Spring hibernate 应用程序,Web 界面位于一台服务器上,持久层位于另一台服务器上

发布于 2024-10-03 21:44:52 字数 248 浏览 0 评论 0原文

我正在开发一个Web应用程序,使用的主要技术是JSP,Spring框架和hibernate。在典型场景中,请求被控制器拦截,控制器依次与服务通信,然后服务与 DAO 通信。目前,该应用程序由单个 JBOSS 服务器托管。我迫切需要一个架构设置的解决方案。我需要将 Web 界面放在不同的 JBOSS 服务器上,并将服务(持久层)放在防火墙后面的不同 JBOSS 服务器上。我不知道如何解决这个问题,我现在唯一能想到的就是使用网络服务。任何想法将不胜感激。

谢谢 马努

I am working on a web application, the main technologies used are JSP,Spring framework and hibernate. In a typical scenario the request is intercepted by the controllers which in turn talk to the Services and then Services talk to DAOs. Right now the application is hosted by a single JBOSS server. I am in an urgent need of a solution to an architectural setup. I need to put the web interface on a different JBOSS server and the services(Persistence layer) on a different JBOSS server behind the firewall. I have no idea how to go about this the only thing I can think of right now is using web services. Any ideas will be greatly appreciated.

Thank you
Manu

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

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

发布评论

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

评论(1

蓝咒 2024-10-10 21:44:52

Spring 远程处理 会回答这个问题。 spring 的 HTTP 调用程序机制(链接文档中的第二点)是最简单、最有效的方法。

延迟初始化不太可能出现一些问题。在传输集合之前,您必须完全初始化集合。

Spring remoting would answer this. The HTTP invoker mechanism of spring (2nd point in the linked docs) is the easiest and most efficient way to do this.

It's not unlikely to have some problems with lazy initialization. You'd have to initialize collections fully before transferring them.

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