Example Coherence*Web Application Using Java EE with a Grid Archive (GAR) Module
(Doc ID 2107954.1)
Last updated on MARCH 13, 2025
Applies to:
Oracle Coherence - Version 12.1.2.0.0 and laterInformation in this document applies to any platform.
Goal
This simple web application uses Coherence*Web for http session state management.
In addition it uses a custom cache using a distributed/partitioned cache type.
Each request to the welcome page (index.jsp) of the application shows the "Counter Session" which is stored as an HTTP session attribute and the "Counter Session Cache" which is stored as a cache entry in a custom cache of type distributed/partitioned cache.
The counter stored as a session attribute will increment with each request for a distinct HTTP session. The counter stored in the custom distributed cache will increment with each request for each HTTP session.
The maven scripts demonstrate how to package an application using grid archive modules (gar) for deployments to Coherence in-process and out-of-process topologies.
Further regarding the configuration of Coherence*Web applications for WebLogic Server 12c can be found at:
Oracle Fusion Middleware Administering HTTP Session Management with Oracle Coherence*Web, 12c (12.1.3), 2 Using Coherence*Web with WebLogic Server
In-Process Topology
Out-Of-Process Topology
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
In-Process Topology |
Out-Of-Process Topology |
Solution |
Requirements |
Configuring |
Instructions |
Sample Code |
Sample Output |