Petals-SE-EIP 2.5

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

Changes (25)

View Page History
If an invoked service returns a {{Fault}} or an {{Error}} status, the behavior of process can be configured:
* The process can terminate and the {{Fault}} or the {{Error}} is sent back to the original consumer
* The process can continue, ignoring the {{Fault}} or the {{Error}} received.

{note:title=Caution}The MEP is mandatory for each {{consumes}} sections.{note}
{center} !aggregator.gif!{center}

{center}{*}Configuration {center}*Configuration of a Service Unit to provide a service (Aggregator)*{center}

{table-plus}

|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{aggregator}} | {center}\-{center} |
{table-plus}

The EIP Component receives 'original' exchanges and correlates them their content amongst the aggregation configurations. The correlation is identified from the XPath expression specified in the SU parameter {{aggregator-correlation}}. If an 'original' exchange is on a {{InOut}} or {{InOptionalOut}} MEP, a standard response is sent back to the 'original' consumer :

{code:xml}
{code}

The exchange messages matching an {{aggregator-correlation}} condition are stored in memory.
Once an 'original' exchange message matches the XPath expression specified in the SU parameter {{test}}, the exchange message and the previous stored exchanges messages on the condition {{aggregator-correlation}} are aggregated and send to the target 'sub-service'.
The current 'original' exchange properties are copied into the target exchange.
The aggregated content is the result of a concatenation with the given structure :

{note:title=Caution}Message order is kept from incoming sequence to the outgoing message.{note}
{note:title=Caution}{{{}consumes}} sections cardinality is [1-1|1-1]{note}
{note:title=Caution}All the Message Exchange Pattern are accepted for the source exchanges{note}


*Enterprise Integration Pattern*
{center} !scattergather.gif!{center}
\\
{center}{*}Configuration {center}*Configuration of a Service Unit to provide a service (EIP)*{center} (Scatter-Gather)*{center}
{table-plus}


|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{scatter-gather}} | {center}\-{center} |
| fault-robust | If true, a fault thrown by a target exchange don't stop the process and don't change the original status to {{FAULT}} | {center}false{center} |
| fault-robust | If true, a fault returned by a 'sub-service' exchange don not interrupt the process of the process | {center}false{center} |
| aggregator-correlation | If true, an exception thrown by a targer exchange don't stop the process and don't change the original exchange status to {{ERROR}}. | {center}false{center} |
{table-plus}
\\
The EIP Component forwards the message to all the services referenced in the consumes sections. The EIP component waits for all the responses from these services, and aggregates them. The aggregation is returned to the original consumer :

{code}

{note:title=Caution}
{note:title=Caution}{{consumes}} sections cardinality is [1-n|1-n]{note}

{note}

{note:title=Caution}
message exchange pattern of the incoming exchange is {{InOut}}.



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{routing-slip}}. | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute {{wire-tap}} | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{splitter}} | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute {{bridge}} | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{router}} | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{dynamic-router}} | {center}\-{center} |



|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{dispatcher}}. | {center}\-{center} |



|| Parameter || Description || Default || Required ||
| your-pattern-name | Name of the java class implementing your pattern. The name of the pattern at runtime will be the one you give as parameter name | {center}\-{center} | {center}No{center} |