JBoss 7.1.1.Final 问题:
有什么方法可以将 jboss.bind.address.management 和 jboss.bind.address.unsecure 设置为与 jboss.bind.address 相同的值,而无需在standalone.xml中硬编码或将它们作为命令行参数传递?
JBoss 7.1.1.Final 问题:
有什么方法可以将 jboss.bind.address.management 和 jboss.bind.address.unsecure 设置为与 jboss.bind.address 相同的值,而无需在standalone.xml中硬编码或将它们作为命令行参数传递?
接口地址接受表达式。默认值如下所示:
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
<!-- TODO - only show this if the jacorb subsystem is added -->
<interface name="unsecure">
<!-- Used for IIOP sockets in the standard configuration.
To secure JacORB you need to setup SSL -->
<inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>
</interface>
</interfaces>
由于它们是表达式,因此可以很容易地将它们更改为使用相同的属性值,如下所示:
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
<!-- TODO - only show this if the jacorb subsystem is added -->
<interface name="unsecure">
<!-- Used for IIOP sockets in the standard configuration.
To secure JacORB you need to setup SSL -->
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
</interfaces>