Overriding or Forcing Local Optimization in Oracle SOA Suite:
Two configuration properties are
provided for either overriding or forcing local optimization.
By default, Oracle SOA Suite prefers
local optimization. However, you can override this behavior with the oracle.webservices.local.optimization
binding property in the composite.xml file. When this
property is set to false, local optimization
is not performed and cross-composite calls are performed through SOAP and HTTP.
You can override the oracle.webservices.local.optimization
property and force optimization to be performed by setting the oracle.soa.local.optimization.force
property to true. Use this property
in the following scenarios:
- The server configuration is sufficiently complicated (for example, there are fire wall or proxy settings in an intranet), which may cause the co-location checks to not deliver the correct result.
- You clearly understand the semantics of local optimization, the system setup qualifies for local optimization, and local optimization is absolutely preferred.
The oracle.soa.local.optimization.force
property has a default value of false.
When this property is set to true, Oracle SOA Suite
skips the condition checks.
Another important note about this property
is that Oracle SOA Suite always honors the setting of this property (if policy
checks allow the optimization). However, if local invocation fails due to non application
faults or exceptions (that is, runtime errors mostly related to the direct Java
invocation), the value of this setting is ignored for subsequent invocations on
the configured endpoint and for all the valid endpoint addresses configured on
the endpoint.
To enable the oracle.soa.local.optimization.force property:
Add oracle.soa.local.optimization.force
as a binding component level property in the reference
section of the composite being invoked. For example, if composite comp_comp2
invokes comp_comp1, then define this
property in the reference section of the composite.xml
file of comp_comp2.
No comments:
Post a Comment