Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JBoss域动态端口偏移量配置_Jboss_Jboss7.x - Fatal编程技术网

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