Version 1

    1) Install Jboss

     

        1a) run this command java -jar | unzip jboss-as-7.1.1.Final.zip

     

     

     

     

    2) How you can make a domain controller

     

      2a) In  JBOSS_HOME you have to make a dir machine-controller

      2b)        mkdir  machine-controller

      2c)        cp -fr  JBOSS_HOME/domain machine-controller

      2d)        cd /machine-controller/domain/configuration

      2e)        mv host-master.xml host.xml

     

      // Now you can run the domain controller    

      2f) JBOSS_HOME/bin/domain.sh -Djboss.domain.base.dir=/home/mino/Scrivania/jboss-as-7.1.1.Final/machine-domain-controller/domain/  

              

     

     

     

     

    3) How you can make a Host Controller A

     

       3a)   mkdir  machine-HostcontrollerA

       3b)   cp -fr  JBOSS_HOME/domain machine-HostcontrollerA

       3c)   cd /machine-HostcontrollerA/domain/configuration

       3d)   mv  host-slave.xml host.xml

       3e)   edit the host.xml  and  add this attribute into tag host

             <host name="hostControllerA"

       3f) You have to change the port in    <native-interface security-realm="ManagementRealm">

            <socket interface="management" port="${jboss.management.native.port:29999}"/>

         so you don't have the bind Exception

       3g) You have change the value of the domain-controller

     

         <domain-controller>

           <remote host="127.0.0.1" port="9999" security-realm="ManagementRealm"/>

        </domain-controller>

       3h) run Host Controller

            ./domain.sh -Djboss.domain.base.dir=/home/mino/Scrivania/jboss-as-7.1.1.Final/machine-HostcontrollerA/domain/

          

     

     

     

    4)  Make a Host Controller B


        You have to repeat from step number3

       4a)   mkdir  machine-HostcontrollerB

       4b)   cp -fr  JBOSS_HOME/domain machine-HostcontrollerB

       4c)   cd /machine-HostcontrollerB/domain/configuration

       4d)   mv  host-slave.xml host.xml

       4e)   edit the host.xml  and  add this attribute into tag host

             <host name="hostControllerB"

       4f) You have to change the port in    <native-interface security-realm="ManagementRealm">

            <socket interface="management" port="${jboss.management.native.port:39999}"/>

            so you don't have the bind Exception

       4g) You have change the value of the domain-controller

     

         <domain-controller>

           <remote host="127.0.0.1" port="9999" security-realm="ManagementRealm"/>

        </domain-controller>

       4e)

       4h)./domain.sh -Djboss.domain.base.dir=/home/mino/Scrivania/jboss-as-7.1.1.Final/machine-HostcontrollerB/domain/

     

     

     

    Head Up!!

     

    1) You can use the file host-slave.xml instead of  to do  mv  host-slave.xml host.xml but when you run Jboss you have to add this parameter in start --host-config=host-slave.xml

     

    2) If you have defined of the servers in file host  pay attention at the  bind Exception error

     

    3) You should see in console domain-controller this message:

     

     

    [Host Controller] 14:29:15,106 INFO  [org.jboss.as.domain] (domain-mgmt-handler-thread - 1) JBAS010918: Registered remote slave host "hostControllerA", JBoss AS 7.1.1.Final "Brontes"

    [Host Controller] 14:29:19,769 INFO  [org.jboss.as.domain] (domain-mgmt-handler-thread - 2) JBAS010918: Registered remote slave host "hostControllerB", JBoss AS 7.1.1.Final "Brontes"