<!--
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright 2010, Red Hat, Inc., and individual contributors
  ~ as indicated by the @author tags. See the copyright.txt file in the
  ~ distribution for a full listing of individual contributors.
  ~
  ~ This is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This software is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ Lesser General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public
  ~ License along with this software; if not, write to the Free
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  -->

<host xmlns="urn:jboss:domain:1.0"
      name="master">

    <management>
	    <security-realms>
		    <security-realm name="PropertiesMgmtSecurityRealm">
			    <authentication>
				    <properties path="mgmt-users.properties" relative-to="jboss.domain.config.dir" />
			    </authentication>
		    </security-realm>
	    </security-realms>
       <management-interfaces>
          <native-interface interface="management" port="9999" />
          <http-interface interface="management" port="9990"/>
       </management-interfaces>
    </management>

    <domain-controller>
       <local/>
       <!-- Alternative remote domain controller configuration with a host and port -->
       <!-- <remote host="192.168.100.1" port="9999"/> -->
    </domain-controller>

    <interfaces>
        <interface name="management">
            <inet-address value="127.0.0.1"/>
        </interface>
        <interface name="public">
           <inet-address value="127.0.0.1"/>
        </interface>
    </interfaces>

 	<jvms>
 	   <jvm name="default">
          <heap size="64m" max-size="128m"/>
       </jvm>
 	</jvms>

    <servers>
        <server name="server-one" group="main-server-group">
            <!-- server-one inherits the default socket-group declared in the server-group -->
            <jvm name="default"/>
        </server>

        <server name="server-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-binding-group ref="standard-sockets" port-offset="150"/>
            <jvm name="default">
                <heap size="64m" max-size="256m"/>
            </jvm>
        </server>

        <server name="server-three" group="other-server-group" auto-start="false">
            <!-- server-three avoids port conflicts by incrementing the ports in
                 the default socket-group declared in the server-group -->
            <socket-binding-group ref="standard-sockets" port-offset="250"/>
        </server>
    </servers>
</host>
