Skip Headers

Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide 10g Release 3 (10.1.3) B14428-01 |
| Home | Solution Area | Contents | Index

Previous | Next |

# Configuring Static Retrieval Load Balancing

To use static retrieval of OC4J instances for load balancing, within each client, configure JNDI properties as follows (see "Using JNDI Properties":

- For `java.naming.factory.initial`, use any initial context factory.

- For the `java.naming.provider.url`, use the `ormi://` prefix and a comma separated list of OC4J nodes in the form `<hostname>:<port>/<application-name>`

For more information, see "Static Retrieval Load Balancing".

## Using JNDI Properties

Example 24-4 shows a URL definition that provides the client container with three OC4J nodes (with hostnames `s1`, `s2`, and `s3` and ports 23791, 23792, and 23793, respectively) to use for load balancing.

Example 24-4 JNDI Properties for Static Retrieval Load Balancing

    java.naming.factory.initial= oracle.j2ee.rmi.RMIInitialContextFactory
    java.naming.provider.url=ormi://s1:23791/ejbs, ormi://s2:23792/ejbs, ormi://s3:23793/ejbs;
    java.naming.security.principal=admin
    java.naming.security.credentials=welcome