Preparing the SayHello use case for Provisioning - 8.0

Talend ESB Infrastructure Services Configuration Guide

Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Talend ESB
Talend Runtime
Design and Development
Installation and Upgrade
Last publication date

About this task

For both SayHelloService and SayHelloConsumer, you must enable the STS option.

For the SayHelloService, in Talend Studio:


  1. In the Repository, right-click a service and select ESB Runtime Options.
  2. In the wizard, select the following check boxes:
    • SAML Token as you are using the JAAS authentication.
    • Use Service Activity Monitor
    • Use Service Locator
  3. Once STS is enabled for the SayHelloService, publish it in the Artifact Repository.
  4. For the SayHelloConsumer, in Talend Studio, double-click the Job Designs to open it.
  5. Click the Context view at the bottom of the window to create your STS credentials.
    Context variables depend on which environment you are going to deploy the consumer, and the STS credential might change depending on if you are in a development, testing, or production environment.
    Here you will add STS credentials for a development environment.
  6. Click Manage environments at the right of the Context view, and in the Manage contexts environments wizard, click Create... to add a new context and name it dev.
  7. The same way, create another context named prod.
  8. Back to the Context view, click twice the green [+] at the top, to add two new context variables: username with Type as String, and password with the Type Password.
  9. Leave the Default variable values empty, and for the dev variable, put karaf for both username and password, and for prod, use tadmin/tadmin.
  10. Select the tESBConsumer_1 component in the Designer view, and click the Component view.
  11. In the Component view, select the Use Service Locator, the Use Service Activity Monitor and the Use Authentication check boxes.
  12. In the Authentication Type drop-down list, select SAML Token as for the service. A new drop-down list is displayed, select the - option.
  13. In the Username field, press Control+Space to access all global and context variables, and select context.username.
  14. In the Password field, press Control+Space, and select context.password.
  15. Once STS is enabled for the SayHelloConsumer, publish it in the Artifact Repository.
  16. Deploy the SayHelloService and the SayHelloConsumer from the Talend Administration Center.
  17. Once the SayHelloService and the SayHelloConsumer are published in the Artifact Repository, go to the ESB Conductor to deploy them to your Talend Runtime Container.
  18. In the ESB Conductor, click the Add button on the top, select Task in the list and fill in the Conductor task form that is displayed to the right:
  19. In the Label field of the Metadata area, name your service deployment task. Here: SayHelloService to deploy the SayHelloService.
  20. In the Feature area, click the Select Feature button to open the Select artifact from Nexus repository wizard that will help you fill in the following fields of this area.
  21. In the Repository list, select snapshots, browse to the SayHello Service feature and select it. Click OK and all the Service feature information will be filled in in the form.
  22. In the Type list, make sure Service is selected.
  23. In the Runtime Config area, select the container on which to deploy the Service in the Server list. Click Save and the Service deployment task will be displayed in the list.
  24. Click the Deploy button on the top and the Service will be deployed into the specified Talend Runtime Container.
  25. Repeat step 2 to 7 for the SayHelloConsumer this time, but select Generic in the Type list:
  26. Once the SayHelloConsumer deployment task listed in the ESB Conductor, select it and go to the Config properties tab in the lower half of the page:
  27. Click the Add button to create a new property with Name context and Value #{environment}.

    context corresponds to the declaration of the context parameter expected as you added execution context to the SayHelloConsumer Job.

    #{environment} corresponds to the declaration of the environment placeholder declared via the #{} syntax.

  28. Click Save.
    This way when you will deploy the consumer to the container, the configuration file that needs to contain the context parameter of the SayHelloConsumer Job will be automatically created: esb/container/etc/SayHelloConsumer.cfg.
  29. Click the Deploy button on the top and the Service will be deployed into the specified Talend Runtime Container.