|
Content with label cluster in Coherence FAQ (See content from all spaces)
Related Labels:
httpsessioncontext
, update-after-forums-move
, coherence-web
, replication
, sessions
, heap
, faq-code-examples
, load-balancing
, singleton
, session-management
, mutex
, example
, faq-coherence-web
, faq-config
, session-cache-config
, servletcontext
How do I cluster the ServletContext
Servlet Specification version 2.4 states in section SRV.3.2: {{In cases where the container is distributed over many virtual machines, a Web application will have an instance of the ServletContext for each JVM.}} The specification further clarifies the distributed scope of ServletContext attributes ...
|
How do I create a cluster-wide named mutex?
create a clusterwide, named mutex, simply lock a key in a cache with an infinite wait time. Note that a key can be locked even though the key does not actually exist in the cache. This example implements a nonrecursive mutex. String sMutexName = "myNamedMutex ...
|
How do I enable HttpSessionContext
Servlet Specification version 2.4 states in section SRV.15.1.12: {{public interface HttpSessionContext}} {{Deprecated. As of Java(tm) Servlet API 2.1 for security reasons, with no replacement. This interface will be removed in a future version of this API.}} CoherenceWeb is fully compliant to the Servlet Specification, and as a result ...
|
How do I implement a Clustered Singleton?
following code example demonstrates how to implement a clustered singleton. import com.tangosol.net.CacheFactory; import com.tangosol.net.NamedCache; / Singleton using cache to back it. (Commented out code is from a singleJVM traditional singleton pattern. New code supports stateless session EJB ...
|
How do I prevent cluster-replication of certain session attributes?
Disabling clustering for session attributes presumes the presence of a sticky load balancer (as the nonclustered attributes will be visible only to requests executing locally within that JVM). # Implement the interface {{HttpSessionCollection.SessionDistributionController}} (in package {{com.tangosol.coherence.servlet}}, in the {{coherenceweb.jar}} found in {{webInstaller.jar}}). The specific method of interest is {{isSessionAttributeDistributed ...
|
How do I prevent session data from being shared by different apps?
Sometimes you may want to explicitly prevent HTTP session data from being shared by different Java EE applications that participate in the same Coherence cluster. For example, say you have two applications {{HRPortal}} and {{InWeb}} that share cached ...
|
What benefits can be realized in a single-server Coherence installation?
While most Coherence installations are deployed in clusters ranging from two to 100 servers, there are many advantages to be gained even in singleserver environments, whether running on a commodity quadprocessor box or a massive partitioned SMP server. This section contains the following information ...
|
|
|