Running the service

Talend Open Studio for ESB Getting Started Guide

EnrichVersion
6.3
EnrichProdName
Talend Open Studio for ESB
task
Design and Development
Installation and Upgrade
EnrichPlatform
Talend Studio
Talend ESB

Once the service is built, you can run it in an OSGi container, the Talend ESB Container. In this scenario, you will learn:

Exporting the service and running it in a Talend ESB Container

In this section, you will see how to export the Customer service to run it in an OSGi container, the Talend ESB Container, for development purposes.

Before exporting the service, first start a Talend ESB Container, and make sure all its Infrastructure Services have been started. For more information, see Launching Talend Runtime and its Infrastructure Services.

  1. Under Services, right-click CustomerService 0.1 and select Export Service. In the [Save As] window, specify a folder. Click Finish.

    This process builds and exports the service to the specified directory, as a CustomerService-0.1.kar file.

  2. Copy the CustomerService-0.1.kar file, and paste it into the deploy folder of the Talend ESB Container. The service starts directly.

  3. Since this is a dynamic loading environment, the service starts running automatically. To see it in the Talend ESB Container window, type in the list command at the console prompt.

  4. To check if the service has correctly been deployed, go to http://localhost:8040/services, and the CustomerService service will be listed.

  5. Now check it is working, by starting the consumer.

    The port that the service is running at has changed, and now uses the Talend ESB Container port, which is by default 8040. To update the port, under Job Designs, open the CustomerConsumer 0.1 Job. Click the middle of tESBConsumer_1. Then go to the Component tab.

  6. Click the [...] button next to Service configuration, which opens a WSDL settings window.

  7. Update the port number to use the Talend ESB Container port by changing 8090 to 8040, and click the refresh button.

  8. Now run the consumer job as before from the Run tab, and you see the same output as before.