JBoss域动态端口偏移量配置
我似乎无法通过域管理安装程序上的属性文件来配置端口偏移,以启动服务器组中的多个服务器实例 我在JBoss域动态端口偏移量配置,jboss,jboss7.x,Jboss,Jboss7.x,我似乎无法通过域管理安装程序上的属性文件来配置端口偏移,以启动服务器组中的多个服务器实例 我在host.xml中有以下配置: <servers> <server name="instance-one" group="main-server-group" auto-start="true"> <socket-bindings port-offset="${jboss.instance1.offset}"/> </server&
host.xml
中有以下配置:
<servers>
<server name="instance-one" group="main-server-group" auto-start="true">
<socket-bindings port-offset="${jboss.instance1.offset}"/>
</server>
<server name="instance-two" group="main-server-group" auto-start="true">
<!-- server-two avoids port conflicts by incrementing the ports in
the default socket-group declared in the server-group -->
<socket-bindings port-offset="${jboss.instance2.offset}"/>
</server>
</servers>
我尝试使用
./domain.sh-p=custom-domain.properties
问题是jboss.instance1.offset
和jboss.instance2.offset
没有应用于host.xml
中的相应属性。如果我在host.xml
中有硬编码的值,则会在硬编码端口偏移量上启动实例1和实例2
自定义属性配置在域设置中不起作用吗
谢谢您的帮助。尝试向表达式中添加默认值。e、 g.
${jboss.instance2.offset:50}
运气不好,试过了,也没用。什么jboss AS 7版本?jboss AS 7.1.1.Final-你试过使用-djbboss.instance1.offset=10300?
jboss.domain.base.dir=custom-domain
jboss.instance1.offset=10300
jboss.instance2.offset=20300