PRODUCTS AND SERVICES INDUSTRIES SUPPORT PARTNERS COMMUNITIES ABOUT
  Coherence 3.3 User Guide
  services
Added by Rob Misek, last edited by Mark Falco on Feb 13, 2006  (view change)

Labels

 
(None)

services

Used in: cluster-config.

Description

Specifies the configuration for Coherence services.

Service Components

The types of services which can be configured includes:

  • ReplicatedCache - A cach service which maintains copies of all cache entries on all cluster nodes which run the service.
  • ReplicatedCache.Optimistic - A version of the ReplicatedCache which uses optimistic locking.
  • DistributedCache - A cache service which evenly partitions cache entries across the cluster nodes which run the service.
  • SimpleCache - A version of the ReplicatedCache which lacks concurrent control.
  • LocalCache - A cache service for caches where all cache entries reside in a single cluster node.
  • InvocationService - A service used for performing custom operations on remote cluster nodes.

Elements

The following table describes the elements you can define for each service element.

Element Required/Optional Description
<service-type> Required Specifies the canonical name for a service, allowing the service to be referenced from the service-name element in cache configuration caching-schemes.
<service-component> Required Specifies either the fully qualified class name of the service or the relocatable component name relative to the base Service component.

Legal values are:
  • ReplicatedCache
  • ReplicatedCache.Optimistic
  • DistributedCache
  • SimpleCache
  • LocalCache
  • InvocationService
<use-filters> Optional Contains the list of filter names to be used by this service.

For example, specifying use-filter as follows
<use-filters>
  <filter-name>gzip</filter-name>
</use-filters>

will activate gzip compression for the network messages used by this service, which can help substantially with WAN and low-bandwidth networks.

<init-params> Optional Specifies the initialization parameters that are specific to each service-component.

For more service specific parameter information see:

The content override attributes xml-override and id can be optionally used to fully or partially override the contents of this element with XML document that is external to the base document.