PRODUCTS AND SERVICES INDUSTRIES SUPPORT PARTNERS COMMUNITIES ABOUT
  Coherence 3.5 User Guide
  Element Attributes
Added by Rob Misek, last edited by Rob Misek on Sep 15, 2008  (view change)

Labels

 
(None)

Element Attributes

The optional id and xml-override attributes can be used to override the contents of an element. These attributes can appear, either individually or together, within the following elements:

The following table lists the elements that can use id or xml-override, or both.

authorized-hosts cluster-config
coherence configurable-cache-factory-config
filter-name filters host-range incoming-message-handler
init-param (operational) logging-config multicast-listener packet-publisher
services shutdown-listener
tcp-ring-listener unicast-listener


The following table describes the functionality of the id and xml-override attributes.

Attribute Required/Optional Description
xml-override Optional Allows the content of this element to be fully or partially overridden with XML documents that are external to the base document.

Legal value of this attribute is the resource name of such an override document that should be accessible using the ClassLoader.getResourceAsStream(String name) by the classes contained in coherence.jar library. In general that means that resource name should be prefixed with '/' and located in the classpath.

The override XML document referred by this attribute does not have to exist. However, if it does exist then its root element must have the same name as the element it overrides.

In cases where there are multiple elements with the same name (e.g. <services>) the id attribute should be used to identify the base element that will be overridden as well as the override element itself. The elements of the override document that do not have a match in the base document are just appended to the base.
id Optional Used in conjunction with the xml-override attribute in cases where there are multiple elements with the same name (e.g. <services>) to identify the base element that will be overridden as well as the override element itself. The elements of the override document that do not have a match in the base document are just appended to the base.