Using a Bean
Once created, you can use the Beans in the Mediation components. To do so, go to the Component view of the relevant component to define its properties:
For some components (for example cBean, cDynamicRouter, etc.), you can directly call Beans:
-
In the Beans class field of those components, type in beans.BEAN_NAME.class for global Beans or packageName.BEAN_NAME.class for custom Bean Jars. The corresponding bean will be called.
-
If the Bean called has more than one method, you can specify which method you want to call by selecting the Specify the method check box and typing its name in the field displaying.
For some components (for example cAggregate, cMulticast, etc.), you can call Beans as an aggregation strategy:
-
Select the Use aggregation strategy check box.
-
In the Strategy field, type in the name of the Bean without any prefix or extension.
For more information on how to create Routes, see Creating a Route Creating a Route.
For more information on the properties and usage of the Mediation components, see the Talend Mediation Components.