部署多场战争

问题描述 投票:0回答:1

将多个(战争)部署到 WildFly Server/JBoss 7 中的最佳方法是什么?

war内容是相等的,区别在于URL和数据库的访问。

War 1: http://localhost:8080/war1
War 2: http://localhost:9080/war2
War 3: http://localhost:10080/war3
War 4: http://localhost:11080/war4

其实我是这样的:

 standalone.bat
-Djboss.server.base.dir=%STANDALONE_INSTANCE%
-Dorg.jboss.boot.log.file=%STANDALONE_INSTANCE%\log\boot.log
-Dlogging.configuration=%STANDALONE_INSTANCE%\configuration\logging.properties
-Djboss.socket.binding.port-offset=1000

这样, 我用另一个名称复制了独立文件夹, 但是有更好的解决方案吗?

jakarta-ee deployment jboss wildfly jboss7.x
1个回答
0
投票

您可以使用domain服务器,但为什么每次战争都需要在不同的服务器上运行?您可以将多个战争部署到同一个独立实例上。

© www.soinside.com 2019 - 2024. All rights reserved.