JBOSS Cluster creation

Cluster Creation :-
To setup cluster we have to follow below steps
 . JBOSS should be configured in domain mode where domain.xml and host.xml files are used .
  
  ========================
  =        MASTER        =
  ========================
1.go to D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\domain\configuration
domain.xml and host-master.xml is the files we use for Master
2.Starting Master 
D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin 
CMD:domain.bat --domain-config=domain.xml --host-config=host-master.xml
  ========================
  =        SLAVE         =
  ========================

1.go to D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\domain\configuration
host-slave.xml is the only file we use for Slave
edit host-slave.xml add name="slave" in host tag to act as slave 
2.modify the secret value and add username="controller" and change hostname,port to connect to master.
    <domain-controller>
        <remote host="127.0.0.1" port="9999" security-realm="ManagementRealm" username="controller"/>
    </domain-controller>
3.Start Slave 
Go to D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin
CMD:domain.xml --host-config=host-slave.xml

To Configure jbdeploy to give it to the Developer :
This system is currently configured to use simple access controls, which will not utilize changes made in this section for roles. In order to utilize role mappings
that you configure in this section, you will need to enable role based access controls from the Command Line Interface (CLI) using the following command:

/core-service=management/access=authorization:write-attribute(name=provider,value=rbac)
D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin>jboss-cli.bat -c --controller=127.0.0.1:9999
[domain@127.0.0.1:9999 /] /core-service=management/access=authorization:write-attribute(name=provider,value=rbac)
{
    "outcome" => "success",
    "response-headers" => {
        "operation-requires-reload" => true,
        "process-state" => "reload-required"
    },
    "result" => undefined,
    "server-groups" => undefined
}
[domain@127.0.0.1:9999 /]

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *