Configuring Local Optimization in Oracle SOA Suite:
Local optimization is the process of
one SOA composite application invoking another SOA composite application
through direct Java invocations in an environment in which both composites are
on the same SOA server (JVM).
Direct Java invocations are generally
more efficient than SOAP over HTTP calls. Therefore, whenever the conditions
are met for direct Java invocations, Oracle SOA Suite optimizes the service
calls for the co-located composites.
In 10.1.x releases, we manually
configured SOAP optimization with the optSoapShortcut property. For release 11g,
SOAP optimization is automatically configured.
Oracle SOA Suite performs the following
condition checks to determine if local optimization is possible.
- It must be a composite-to-composite invocation. This is the most fundamental criteria that makes the direct Java calls possible when both the client and target services are implemented based on the same SOA Infrastructure (that is, the same SOA server).
- The composite implementing the reference (target) service must be active. This condition requires the target composite to be up and running, which in turn ensures that the reference service is available.
- The client and target composites must be co-located on the same server. This is an obvious requirement for direct Java invocations. It is also a critical step in which Oracle SOA Suite compares the server (on which the client composite is deployed) host configuration with the host and port values specified in the reference (target) service endpoint URI. If the host and port values match, it can be concluded that the client and target composites are located on the same server.
- However, the comparison is not necessarily straightforward given that working with both standalone and clustered server setups and potential load balancer configurations is necessary. Therefore, here are the step-by-step condition checks that determine the correct server configuration on all platforms:
- Checks the Server URL configuration property value on the SOA Infrastructure Common Properties in em console.