Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10g Release 3 (10.1.3)
B14428-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
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 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