Coherence*Web can be installed in a WebLogic Portal environment to provide session state management based on Coherence. Coherence*Web allows for more advanced deployment models, session models, and locking modes in a clustered environment. For more information on these features, see Chapter 4, "Coherence*Web Session Management Features."
Note:As with other WebLogic Server applications, all of the information and instructions in Chapter 2, "Installing Coherence*Web on the WebLogic Server 10.3" apply to deploying Coherence*Web with WebLogic Portal. Please read Chapter 2 before proceeding. It provides much needed context for the following information.
However, note that you do not have to install Coherence*Web on WebLogic Server to install it on WebLogic Portal.
Complete these steps to install Coherence*Web with WebLogic Portal applications:
Install WebLogic Patch ID N41D according to the instructions described in "Overview Of Configuration and Deployment".
See "Using Coherence*Web and WebLogic Portal" for more information on the P13N CacheProvider SPI implementation and WSRP-federated portals.
(Optional) If you want to use the Coherence P13N Cache as the default cache provider, add the following element before the first
<cache> element to the
META-INF\p13n-cache-config.xml file in the portal enterprise application:
coherence-web-spi.war by using a library-reference in the
WEB-INF\weblogic.xml file in the portal Web application:
<wls:library-ref> <wls:library-name>coherence-web-spi</wls:library-name> <wls:specification-version>220.127.116.11</wls:specification-version> <wls:implementation-version>18.104.22.168</wls:implementation-version> <wls:exact-match>false</wls:exact-match> </wls:library-ref>
<context-param> <param-name>coherence-web-sessions-enabled</param-name> <param-value>true</param-value> </context-param>
.EAR of the test application using workshop's EAR deployment. This EAR will be deployed to the cluster for testing.
In the portal domain, deploy the application EAR to the cluster.
Coherence integrates closely with Oracle WebLogic Portal. Specifically, Coherence includes the following integration points:
Coherence*Web for HTTP session state management
P13N CacheProvider SPI implementation
A blueprint for efficiently sharing data between WSRP-federated portals that uses Coherence and the WebLogic Portal Custom Data Transfer mechanism
WebLogic Portal 8.1.6 and later includes an SPI for the P13N caching service that can be implemented by third party cache vendors. Coherence includes a P13N CacheProvider SPI implementation that, when installed into a WebLogic Portal application, will transparently manage cached P13N data without requiring code changes. Additionally, combining Coherence and WebLogic Portal gives you extreme flexibility in your choice of cache topologies.
For example, if you find that your Portal servers are bumping into the 4GB heap limit (on 32-bit JVMs) or are experiencing slow GC times, you can leverage a cache client/server topology to move serializable P13N state out of your Portal JVMs and into one or more dedicated Coherence cache servers,. This reduces your Portal JVM heap size and GC times. Also, you can use the Coherence Management Framework to closely monitor statistics to better tune your P13N cache settings. Finally, the Coherence
CacheProvider also allows your portlets to use Coherence caching service by using the standard P13N Cache API.
To install the Coherence P13N
Configure the Coherence P13N
CacheProvider as the default provider in the
p13n-cache-config.xml file found in each of your WLP application's
META-INF directory. Specifically, add the following line immediately before the first
See the Javadoc for the
PortalCacheProvider class for details on configuring the Coherence
CacheProvider and Coherence caches used by the provider.
See also the following document for a list of some of the caches used by WebLogic Portal:
The Web Services for Remote Portlets (WSRP) protocol was designed to support the federation of portals hosted by arbitrary portal servers and server clusters. Developers use WSRP to aggregate content and the user interface (UI) from various portlets hosted by other remote portals. By itself, though, WSRP does not address the challenge of implementing scalable, reliable, and high-performance federated portals that create, access, and manage the lifecycle of data shared by distributed portlets. Fortunately, WebLogic Portal provides an extension to the WSRP specification that, when coupled with Oracle Coherence, allows WSRP Consumers and Producers to create, view, modify, and control concurrent access to shared, scoped data in a scalable, reliable, and highly performant manner.
See the following document for complete details: