<?xml version='1.0' encoding='UTF-8'?>

<domain xmlns="urn:jboss:domain:2.1">

    <extensions>
        <?EXTENSIONS?>
    </extensions>

    <system-properties>
        <!-- IPv4 is not required, but setting this helps avoid unintended use of IPv6 -->
        <property name="java.net.preferIPv4Stack" value="true"/>
    </system-properties>

    <management>
        <access-control provider="simple">
            <role-mapping>
                <role name="SuperUser">
                    <include>
                        <user name="$local"/>
                    </include>
                </role>
            </role-mapping>
        </access-control>
    </management>

    <profiles>
       <profile name="clustered">
           <?SUBSYSTEMS socket-binding-group="clustered-sockets"?>
       </profile>
    </profiles>

    <!--
         Named interfaces that can be referenced elsewhere in the configuration. The configuration
         for how to associate these logical names with an actual network interface can either
         be specified here or can be declared on a per-host basis in the equivalent element in host.xml.

         These default configurations require the binding specification to be done in host.xml.
    -->
    <interfaces>
        <interface name="management"/>
        <interface name="public"/>
    </interfaces>

    <socket-binding-groups>
        <socket-binding-group name="clustered-sockets" default-interface="public">
            <!-- Needed for server groups using the 'clustered' profile  -->
            <?SOCKET-BINDINGS?>
        </socket-binding-group>
    </socket-binding-groups>

    <server-groups>
        <server-group name="main-server-group" profile="clustered">
            <jvm name="default">
                <heap size="64m" max-size="512m"/>
            </jvm>
            <socket-binding-group ref="clustered-sockets"/>
        </server-group>
        <server-group name="other-server-group" profile="clustered">
            <jvm name="default">
                <heap size="64m" max-size="512m"/>
            </jvm>
            <socket-binding-group ref="clustered-sockets"/>
        </server-group>
    </server-groups>

</domain>
