0

JBoss 7.1.1。最後の質問:

jboss.bind.address.managementとjboss.bind.address.unsecureをstandalone.xmlにハードコーディングしたり、コマンドラインパラメーターとして渡したりせずにjboss.bind.addressと同じ値に設定できる方法はありますか?

4

1 に答える 1

5

インターフェイス アドレスは式を受け入れます。デフォルト値は次のようになります。

<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>
于 2012-04-25T15:59:40.500 に答える