Creating a Route Resource and calling it in the Route - 7.3

SEDA (Mediation)

Version
7.3
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Messaging components (Mediation) > SEDA components (Mediation)
Data Quality and Preparation > Third-party systems > Messaging components (Mediation) > SEDA components (Mediation)
Design and Development > Third-party systems > Messaging components (Mediation) > SEDA components (Mediation)
Last publication date
2023-06-12

Procedure

  1. From the repository tree view, right-click the Resources node and select Create Resource from the context menu.
  2. The New Route Resource wizard opens. In the Name field, type in a name for the Resource, for example, SetRepeatCount. Click Finish to close the wizard.
  3. Enter repeat.count=2 in the design workspace to set the repeat count.
  4. Press Ctrl+S to save your Route Resource.
  5. Right-click the Route from the repository tree view and select Manage Route Resources from the context menu.
    The Manage Route Resources wizard is opened.
  6. Click Add and select SetRepeatCount from the Resources tree view in the dialog. Click OK.
    The SetRepeatCount Route Resource is added in the table.
  7. Click OK to close the wizard.
    For more information about creating and using Route Resources, see Talend Studio User Guide.
  8. Click the Spring tab on the lower half of the design workspace of the Route.
  9. Enter the following code in this view to call the Route Resource you just created.
    <bean id="properties" class="org.apache.camel.component.properties.PropertiesComponent">   
        <property name="location" value="classpath:SetRepeatCount.properties"/>  
    </bean>
    For more information about using Spring configuration in a Route, see Talend Studio User Guide.