Petals ESB Deployer 1.0.0

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

Changes (19)

View Page History
** The Petals ESB Hazelcast Registry must be used if at least two Petals ESB containers are declared,
** The Petals ESB Hazelcast Registry must contain at least one Petals ESB Hazelcast Registry member,
* A component repository model must contain at least one component,
* A bus object model always refers to a service-unit object model,
* A bus object model always refers to a topology object model,
* A bus object model always refers to a component respoitory model,
* A bus object model must contain at least one machine,
* In a bus object model:
** a machine must host at least one Petals ESB container or one Petals ESB Hazelcast Registry member,
** two machines can refer to a same physical machine if they will have the same configuration values or deployment properties,
** Petals ESB container instances and Petals ESB Hazelcast Registry member instances can reference the same machine to force a co-localization.,

h2. Writing your deployment model
The best practice is to write your deployment model with different files:
* a 1st file for your service units object model, written by your development team,
* an optional 2nd file for your component repository model, written by your development team in agreement with the PEtals ESB architect. Or you will use an external component repository model (for example, coming with Petals ESB distribution packs),
* a 2nd 3rd file for your topology object model, written by the Petals ESB architect,
* and a 3rd 4th file for your bus object model, written by the Petals ESB bus architect in agreement with operators.

h4. Writing a service units object model
</service-units>
{code}
h4. Writing a service units object model

h4. Writing a topology object model
Example of a service unit object model:
{code:lang=xml}
<service-units xmlns="http://petals.ow2.org/deployer/models/service-units.om/1.0" targetNamespace="http://petals.ow2.org/deployer/sample.suom">
<service-unit id="su-filetransfer-consume">
<url>mvn://org.ow2.petals.samples.filetransfer/su-filetransfer-consume/4.1.0-1.0.0</url>
</service-unit>
<service-unit id="su-filetransfer-provide">
<url>mvn://org.ow2.petals.samples.filetransfer/su-filetransfer-provide/4.1.0-1.0.0</url>
</service-unit>
</service-units>
{code}

h4. Writing a component repository model

Example of a standalone topology object component repository model:
{code:lang=xml}
<topology xmlns="http://petals.ow2.org/deployer/models/topology.om/1.0" targetNamespace="http://petals.ow2.org/deployer/sample-standalone.tom">
<components xmlns="http://petals.ow2.org/deployer/models/components.rm/1.0" targetNamespace="http://petals.ow2.org/deployer/sample.crm">
<component id="petals-bc-filetransfer">
<url>mvn://org.ow2.petals/petals-bc-filetransfer/4.1.0</url>
<parameters>
<parameter name="properties-file">petals-bc-filetransfer.properties</parameter>
</parameters>
<containers> </component>
<container id="cont-0" />
</containers>
</topology> </components>
{code}

<import namespace="http://petals.ow2.org/deployer/sample.suom" location="sample.suom"
importType="http://petals.ow2.org/deployer/models/service-units.om/1.0">
<!-- Import of the component repository model -->
<import namespace="http://petals.ow2.org/deployer/sample.crm" location="sample.crm"
importType="http://petals.ow2.org/deployer/models/components.rm/1.0">
<!-- Import of the topology object model -->
<import namespace="http://petals.ow2.org/deployer/sample-standalone.tom" location="sample-standalone.tom"
<import namespace="http://petals.ow2.org/deployer/sample.suom" location="sample.suom"
importType="http://petals.ow2.org/deployer/models/service-units.om/1.0">
<!-- Import of the component repository model -->
<import namespace="http://petals.ow2.org/deployer/sample.crm" location="sample.crm"
importType="http://petals.ow2.org/deployer/models/components.rm/1.0">
<!-- Import of the topology object model -->
<import namespace="http://petals.ow2.org/deployer/sample-distributed.tom" location="sample-distributed.tom"
targetNamespace="http://petals.ow2.org/deployer/sample-standalone.bom">

<!-- Import of the component repository model coming from Petals ESB -->
<import namespace="http://petals.ow2.org/deployer/sample.crm" location="classpath:petals-component-repository.xml"
importType="http://petals.ow2.org/deployer/models/components.rm/1.0">

<suom:service-units xmlns:suom="http://petals.ow2.org/deployer/models/service-units.om/1.0">
<service-unit id="su-filetransfer-consume">