Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10g (10.1.3.5.0)

Part Number E13981-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

Configuring Load Balancing Behavior

For both EJB 3.0 and EJB 2.1 and for all load-balancing strategies (replication-based, static retrieval, or DNS), you can configure how a client's requests are load-balanced across the OC4J instances in your cluster (see "Using System Properties").

For more information, see "Load Balancing".

Using System Properties

In this release, configure the oracle.j2ee.rmi.loadBalance system property to specify load balancing in an application cluster.

This system property takes one of the following values:

  • client–The client interacts with the OC4J process that was initially chosen at the first lookup for the entire conversation (default).

  • context–The client goes to a new server when a separate context is used (similar to deprecated dedicated.rmicontext).

  • lookup–The client goes to a new (randomly selected) server for every request.

Configure this system property either on the OC4J command line as a -D argument or as an environment reference (see "Configuring an Environment Reference to an Environment Variable"). This system property applies to all clients.