Sun GlassFish Enterprise Server v2.1.1 High Availability Administration Guide

Configuring a Highly Available Broker Cluster in the Local Mode

  1. Start HADB.

  2. Create a domain and start it. To create a domain and start it, use the asadmin commands, create-domain and start-domain respectively. For more information about these commands, see create-domain(1) and start-domain(1).

  3. Create a node agent and start it. To create a node agent and start it, use the asadmin commands, create-node-agent and start-node-agent respectively. For more information about these commands, see create-node-agent(1) and start-node-agent(1).

  4. Create a cluster. You can create a cluster either using the asadmincommand, create-cluster or using the Admin Console. For more information on the create-cluster command, see create-cluster(1). For information on how to create a cluster using the Admin Console, see the Admin Console Online Help.

  5. Create instances in the cluster. While creating an instance, specify the JMS Provider port number being used by the remote broker. If you do not specify one, it will take the default JMS Provider port number. You can create instances using the Admin Console or the asadmin command, create-instance. For information on how to create instances using the Admin Console, see the Admin Console Online Help. For information on the create-instance command, see create-instance(1).

  6. Start the cluster. You can do this from the Admin Console or using the asadmin command start-cluster. For information on how to start a cluster using the Admin Console, refer to the Admin Console Online Help. For information on the start-cluster command, see start-cluster(1).

  7. Configure the HA cluster using the asadmin command, configure-ha-cluster. For more information about the command, see configure-ha-cluster(1).