部署多个战争



部署多个(战争)到WildFly服务器/JBoss 7的最佳方式是什么?

战争内容是相等的,不同的是访问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%logboot.log
-Dlogging.configuration=%STANDALONE_INSTANCE%configurationlogging.properties
-Djboss.socket.binding.port-offset=1000

这种方式,我需要用另一个名字复制独立文件夹,然而,最好的解决方案是什么?

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

最新更新