|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (30)
View Page History* The process can continue, ignoring the {{Fault}} or the {{Error}} received.
{note:title=Caution}
{note:title=Caution}The MEP is mandatory for each {{consumes}} sections.{note}
{note}
{note:title=Caution}
{note:title=Caution}
{note:title=Caution}Either an operation must be specified in the {{consumes}} sections or the 'original' operation is used for 'sub-service' requests.{note}
{note}
h3. Aggregator Pattern
{center}{*}Configuration of a Service Unit to provide a service (Aggregator)*{center}
{table-plus}
{table-plus}
|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{aggregator}} | {center}\-{center} |
| eip | The name of the pattern to execute : {{aggregator}} | {center}\-{center} |
{table-plus}
The EIP Component receives source exchanges and correlates it to a SU deployed. The correlation is retrieved from an XPath expression specified in the SU parameter 'aggregator-correlation'. If the source exchange is {{InOut}} or {{InOptionalOut}}, a standard response is sent :
The EIP Component receives 'original' exchanges and correlates them 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}
Once a source exchange matches the test(s), the target exchange, with a single, aggregated, content, is sent. The 'original' exchange properties are copied into the target exchange. The tests to process are XPath expressions specified in the SU parameters {{test}}. The aggregated content is the result of a concatenation :
The exchanges matching an {{aggregator-correlation}} condition are stored in memory.
Once an 'original' exchange matches the XPath expression specified in the SU parameter {{test}}, the exchange and the previous stored exchanges 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 :
Once an 'original' exchange matches the XPath expression specified in the SU parameter {{test}}, the exchange and the previous stored exchanges 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 :
{code:xml}
{code}
The result of the target service is reported to the consumer of the source exchange matching the test.
The result of the 'sub-service' is sent back to the 'original' consumer of the last aggregated exchange.
An example of service unit configuration :
An example of Service Unit configuration for the *aggregator* pattern :
{code:xml}
{code}
{note:title=Caution}
{note:title=Caution}Message order is kept from incoming sequence to the outgoing message.{note}
{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}
{note:title=Caution}All the Message Exchange Pattern are accepted for the source exchanges{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}
{{consumes}} sections cardinality is [1-1|1-1]
{note}
{note:title=Caution}
All the Message Exchange Pattern are accepted for the source exchanges
{note}
h3. Scatter-Gather Pattern
{table-plus}
|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{scatter-gather}} | {center}\-{center} |
| eip | The name of the pattern to execute : {{scatter-gather}} | {center}\-{center} |
{table-plus}
|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{routing-slip}}. | {center}\-{center} |
| eip | The name of the pattern to execute : {{routing-slip}}. | {center}\-{center} |
\\
{note:title=Caution}{{{}consumes}} sections cardinality is [1-n|1-n]
{note:title=Caution}{{{}consumes}} sections cardinality is [1-n|1-n]
{note}
{note:title=Caution}by default, the {{process}} stops when a Fault is returned by the provider if it doesn't use the InOnly Message Exchange Pattern{note}
{note:title=Caution}by default, the {{process}} stops when a Fault is returned by the provider if it doesn't use the InOnly Message Exchange Pattern{note}
{table-plus}
|| Parameter || Description || Default ||
| eip | The name of the pattern to execute {{wire-tap}} | {center}\-{center} |
| eip | The name of the pattern to execute {{wire-tap}} | {center}\-{center} |
{table-plus}
|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{splitter}} | {center}\-{center} |
| eip | The name of the pattern to execute : {{splitter}} | {center}\-{center} |
{table-plus}
|| Parameter || Description || Default ||
| eip | The name of the pattern to execute {{bridge}} | {center}\-{center} |
| eip | The name of the pattern to execute {{bridge}} | {center}\-{center} |
{table-plus}
|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{router}} | {center}\-{center} |
| eip | The name of the pattern to execute : {{router}} | {center}\-{center} |
{table-plus}
|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{dynamic-router}} | {center}\-{center} |
| eip | The name of the pattern to execute : {{dynamic-router}} | {center}\-{center} |
{table-plus}
|| Parameter || Description || Default ||
| eip | The name of the pattern to execute : {{dispatcher}}. | {center}\-{center} |
| 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} |
| 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} |