Create a load balancer configuration using the asadmin command create-http-lb-config.
Add a reference to a cluster or stand-alone server instance for the load balancer to manage using asadmin create-http-lb-ref.
If you created the load balancer configuration with a target, and that target is the only cluster or stand-alone server instance the load balancer references, skip this step.
Enable the cluster or stand-alone server instance referenced by the load balancer using asadmin enable-http-lb-server.
Enable applications for load balancing using asadmin enable-http-lb-application.
These applications must already be deployed and enabled for use on the clusters or stand-alone instances that the load balancer references. Enabling for load balancing is a separate step from enabling them for use.
Create a health checker using asadmin create-health-checker.
The health checker monitors unhealthy server instances so that when they become healthy again, the load balancer can send new requests to them.
Generate the load balancer configuration file using asadmin export-http-lb-config .
This command generates a configuration file to use with the load balancer plug-in shipped with the Sun Java System Application Server.
Copy the load balancer configuration file to your web server config directory where the load balancer plug-in configuration files are stored.