WebLogic 中 Web 集群应用程序的 URL
我已经在 WL 10.3 中部署了一个带有 EJB 和 JMS 的 WebLogic 集群。有一台管理服务器和两个受管节点。
我有一个 .war 文件中的 Web 应用程序,因此它已通过“所有集群节点”选项部署在受管节点上。
我通过 URL 访问每个节点中的应用程序: http://localhost:7101/myApp 和 httop:// /localhost:7201/myApp.他们工作。
所以,我的问题是:如何配置单个 URL(http://localhost:8000/myApp 或类似的东西)以使集群对最终用户透明?这样,用户写入 http://calhost:8000/myApp 就有了映射两个节点的东西,进行负载平衡等,但对用户来说是透明的。
提前致谢。此致
I have deployed a WebLogic Cluster in WL 10.3, with EJBs and JMS. There are one admin server and two managed nodes.
I have a Web Application in a .war file, so it has been deployed on the managed nodes by "all the cluster nodes" option.
I access to the application in each node, with URLs: http://localhost:7101/myApp and httop://localhost:7201/myApp. They work.
So, my question is: how can I configure a single URL (http://localhost:8000/myApp or something like that) to make the cluster transparent for the final user? In this way, the user writes http://calhost:8000/myApp and there is something that maps the two nodes, makes load balancing, etc., but transparent for the user.
Thanks in advance. Best regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有负载均衡器,则可以让负载均衡器来执行此操作。但我认为这不是您要找的。
还有其他两个选项:
不太推荐使用 HTTP 代理应用程序的方法,但如果您不想放置专用的负载均衡器或将请求代理到集群的 Web 服务器,则可以考虑使用该方法。
If you have a load balancer, you can get the load balancer to do this. But I don't think this is what you were looking for.
There are two other options:
The approach of using the HTTP proxy application is less recommended, but could be considered if you do not want to put a dedicated load balancer, or a web server that proxies requests to the cluster.