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 
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.
        <remote host="" port="9999" security-realm="ManagementRealm" username="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:

D:\jboss\jboss-eap-6.3.0_Node1\jboss-eap-6.3\bin>jboss-cli.bat -c --controller=
[domain@ /] /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@ /]

Related Posts

Leave a Reply

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