Skip to main content

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:

  1. 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.

  2. 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:

  1. Select the Use aggregation strategy check box.

  2. 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.

For more information on the properties and usage of the Mediation components, see the Talend Mediation Components.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!