Using WSRP with WebLogic Portal
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Local proxy support allows co-located Producer and Consumer web applications to short-circuit network I/O and "SOAP over HTTP" overhead. When you enable this feature, the Consumer tries to determine if the Producer is deployed on the same server and, if it discovers that the Producer is so deployed, it uses a local proxy to send requests to the Producer. If the producer is not deployed on the same server, the Consumer uses the default remote proxy. Remote Producers can still be invoked as usual even when the local proxy support is enabled.
This section describes how to implement local proxy support. It includes information on the following subjects:
Local proxy mode provides a number of advantages over the default remote proxy when you are working with co-located web applications. Among the most significant are that it:
OutOfMemoryErrors
.Additionally, by enabling local proxies, customers can take advantage of the decoupling benefits of WSRP without incurring its performance overhead.
To take advantage of local proxy support, do the following:
<enable-local-proxy>
to "true"
in WEB-INF/wsrp-producer-registry.xml
in the Consumer web application, as shown in Listing 7-1:Listing 7-1 Setting <enable-local-proxy>
to "true"
<wsrp-producer-registry
xmlns="http://www.bea.com/servers/weblogic/wsrp-producer-registry/8.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/servers/weblogic/wsrp-producer-
registry/8.0 wsrp-producer-registry.xsd">
<!-- Upload limit (in bytes) -->
<upload-read-limit>1048576</upload-read-limit>
<!-- Timeout (in milli seconds) -->
<connection-timeout-secs>120000</connection-timeout-secs>
<!-- Enable local proxy -->
<enable-local-proxy>true</enable-local-proxy>
...
</wsrp-producer-registry>
You can also enable local proxy support by setting a system property com.bea.wsrp.proxy.LocalProxy.enabled = true
. If this system property is set to true, it will override the <enable-local-proxy>
setting in WEB-INF/wsrp-producer-registry.xml
.
Local proxy support is disabled by default in web application templates.
As powerful a tool as local proxy support is, you should only use it when it will benefit your application. The most common reasons for using local proxy support are:
On the other hand, you shouldn't use local proxy support when interoperating with non-BEA Producers and Consumers.
![]() ![]() |
![]() |
![]() |