<?xml version="1.0" ?>

<config xmlns="urn:jboss:galleon:config:1.0" name="domain.xml" model="domain">
    <!-- domain.server-group features are excluded from every domain group below
         simply to preserve the order of the profiles specified here.
         Not excluding the server groups will work but profiles full and full-ha
         will appear in the resulting config before ha because the server groups that are
         introduced into the config by the first domain group and overriden to reference
         full and full-ha below will make those profiles installed before ha.
    -->
    <feature-group name="domain">
        <exclude spec="domain.server-group"/>
    </feature-group>
    <feature-group name="domain-ha">
        <exclude spec="domain.server-group"/>
    </feature-group>
    <feature-group name="domain-full">
        <exclude spec="domain.server-group"/>
    </feature-group>
    <feature-group name="domain-full-ha">
        <exclude spec="domain.server-group"/>
    </feature-group>
    <feature-group name="domain-load-balancer">
        <exclude spec="domain.server-group"/>
    </feature-group>

    <feature spec="domain.server-group">
        <param name="server-group" value="main-server-group"/>
        <param name="profile" value="full" />
        <param name="socket-binding-group" value="full-sockets" />
        <feature spec="domain.server-group.jvm">
            <param name="jvm" value="default"/>
            <param name="heap-size" value="64m"/>
            <param name="max-heap-size" value="512m"/>
        </feature>
    </feature>
    <feature spec="domain.server-group">
        <param name="server-group" value="other-server-group"/>
        <param name="profile" value="full-ha" />
        <param name="socket-binding-group" value="full-ha-sockets" />
        <feature spec="domain.server-group.jvm">
            <param name="jvm" value="default"/>
            <param name="heap-size" value="64m"/>
            <param name="max-heap-size" value="512m"/>
        </feature>
    </feature>
</config>
