August 15, 2023

Scenario 2: Routing each message conditionally to a series of endpoints – Docs for ESB 6.x

Scenario 2: Routing each message conditionally to a series of endpoints

This scenario applies only to a Talend solution with ESB.

In this scenario, which is based on the previous scenario, each message from a file
system is routed consecutively to different endpoints according to the city name it
contains.

All files used in this use case are named after the city name they contain. The
following are the extracts of two examples:

Beijing.xml:

Paris.xml:

A predefined Java Bean, setEndpoints, is called in this use case
to return endpoint URIs according to the city name contained in each message, so that
the messages will be routed as follows:

  • The message containing the city name Paris will be routed
    first to endpoint a, then to endpoint
    b, and finally to endpoint c.

  • The message containing the city name Beijing will be
    routed first to endpoint c, then to endpoint
    a, and finally to endpoint b.

  • Any other messages will be routed to endpoint b and then
    to endpoint c.

For more information about creating and using Java Beans, see
Talend Studio User
Guide
.


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x