Sun Java System Application Server Enterprise Edition 8.1 2005Q2 High Availability Administration Guide

- Previous: To set up RMI-IIOP load balancing for the Application Client Container

## To set up RMI-IIOP load balancing and failover for Stand-Alone Client

1. Deploy the application with the `--retrieve` option to get the client jar file.

   Keep the client jar file on the client machine.

   For example:

   `asadmin deploy --user admin --passwordfile pw.txt --retrieve /my_dir myapp`

2. Run the client jar and the required jar files, specifying the endpoints and `InitialContext` as `-D` values.

   For example:

       java -Dcom.sun.appserv.iiop.endpoints=
       host1.sun.com:33700,host2.sun.com:33700,host3.sun.com:33700
       samples.rmiiiopclient.client.Standalone_Client

##### Next Steps

To test failover, stop one instance in the cluster and confirm that the application functions normally. You can also have breakpoints (or sleeps) in your client application.

To test load balancing, use multiple clients and see how the load gets distributed among all endpoints.

- Previous: To set up RMI-IIOP load balancing for the Application Client Container

- © 2010, Oracle Corporation and/or its affiliates