如何在 Glassfish 服务器上部署同一应用程序的多个副本?
我在 Glassfish V3 上部署了一场战争和一个 ejb。我需要部署这些副本的另一个副本用于测试目的,我该怎么做?
很抱歉,如果这个问题看起来太笼统,但我不确定在这里使用什么词,因为我以前从未这样做过。
我只需要一些指示即可开始。
更新:
我实际上想查看的是是否可以部署具有相同名称和相同应用程序上下文的同一应用程序的两个副本,但可以从两个不同的端口访问它们,如下所示 -
localhost: 8080/MyApp 和 localhost:8181/MyApp
I have a war and an ejb deployed on my Glassfish V3. I need to deploy another copies of these for testing purpose, how I do I go about this?
I am sorry, if this question looks too general, but am not sure what words to use here as I have never done this before.
I just need some directions to get started.
Update:
What I was actually trying to see was if it was possible to deploy two copies of the same application with the same name and same application-context but access them from two different ports as follows -
localhost:8080/MyApp and localhost:8181/MyApp
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
多个域是我真正需要的。
Multiple domains was what I actually needed.
为三个副本指定不同的应用程序上下文名称
[编辑]
我刚刚安装了 Glassfish 3,并通过 glassfish 管理控制台部署了两个 Jenkins 副本,每个副本都有不同的 war 名称。我为每个副本提供了不同的上下文和不同的应用程序名称,现在有两个副本正在运行。
Give the three copies different application context names
[edit]
I just installed Glassfish 3, and deployed two copies of Jenkins through the glassfish admin console, each with a different war name. I gave each one a different context and different application name and now have two copies running.