Topology Configuration

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (7)

View Page History
{gliffy:name=topology-subdomain|version=5|size=L|align=center}

h1. Configuring the sub-domain mode

The sub-domain configuration is composed of several part:
* the sub-domain identification,
* the sub-domain mode,
* the sub-domain registry configuration.

h2. Configuring the sub-domain mode

A Petals sub-domain supports two different modes :
* static : no new container can be added to a running Petals sub-domain. All containers of the sub-domain must be stop and restart to take into account changes
* dynamic : a container can be attached to or detached from a running sub-domain, without requiring a full start/stop of the sub-domain

h23. Choosing the sub-domain mode

The sub-domain mode 'static' is recommended in following use-case:
If you have a worst constraint about the availability of the Petals ESB (24/24, 7/7), you shoudl use the mode 'dynamic' to be able to apply topology changes without stopping the Petals ESB.

h3. Using the static mode

h2. Using the static mode

To use the static mode, in the sub-domain element of the topology definition, you just have to change the mode property to *static* :

See : [^static-topology-sample.xml]

h23. Using the dynamic mode

To use the dynamic mode, in the sub-domain element of the topology definition, you just have to change the mode property to *dynamic* :
See : [^dynamic-topology-sample.xml]

h2. Configuring the sub-domain registry

h3. Configuring the implementation to use

Firstly, the implementation of the sub-domain registry must be defined through the tag '{{registry-implementation}}' that contains the class name of the implementation to use:
{code}
<tns:sub-domain name="subdomain-0" mode="static" xmlns:tns="http://petals.ow2.org/topology">
...
<tns:registry-implementation>org.ow2.petals.microkernel.registry.overlay.RegistryOverlayImpl</tns:registry-implementation>
...
</tns:sub-domain>
{code}

The default implementation is the Petals Registry Overlay is used. And the tag '{{registry-implementation}}' cab be omitted.

h3. Configuring the implementation itself

Secondly, the implementation itself must be configured using an extension of the sub-domain tag. See the [documentation of the registry implementation|Petals ESB "Registry"#Implementations] for more information.

h1. Declaring containers configurations