Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
DTARCHOUN1648771289
Contributor III
Contributor III

How to use java to call and execute Talend job

well, I have a REST API as a Talend job I don't know how to use java in eclipse or any IDE to call this job and executed

 

 

plz I need help I have passed a 1-month searching in the help center in the community and don't found anything

this is the job

0695b00000QEz3IAAT.png

7 Replies
DTARCHOUN1648771289
Contributor III
Contributor III
Author

@Richard Hall​ 

Anonymous
Not applicable

OK, there are couple of things to know here. Have you tested this in the Studio? You can do this using the Run tab (or Exécuter tab). If you have done this and want to run it outside of the Studio, then you need to use the ESB Runtime. This is packaged with the Studio that you downloaded. You can see documentation on this here....

 

https://help.talend.com/r/en-US/8.0/installation-guide-open-studio-for-esb-windows/talend-open-studio-for-data-integrationtalend-open-studio-for-big-datatalend-open-studio-for-esbtalend-open-studio-for-data-qualitytalend-open-studio-for-mdmtalend-data-integrationtalend-big-datatalend-esbtalend-data-management-platformtalend-big-data-platformtalend-data-services-platformtalend-real-time-big-data-platformtalend-mdm-platformtalend-data-fabrictalend-cloud-prerequisites

DTARCHOUN1648771289
Contributor III
Contributor III
Author

the job executed well in Talend ESB but I try to execute using an IDE like (eclipse,vscode IntelliJ...)

Anonymous
Not applicable

Why would you want to do that? A web service is should be run from a server. That is what the provided ESB Runtime is for.

DTARCHOUN1648771289
Contributor III
Contributor III
Author

my issue is to call the job and run it from java application

i created a simple java application :the user login and must consume the REST service (job)

so i need to call this job and executed in the java application

gjeremy1617088143

HI, you need to deploy your job in the runtime of a server, and then you can call the api via a java application.

Anonymous
Not applicable

You will need Java to call the service. You can call your service from a browser when it is running. Just use the Rest Endpoint you have created with any URI patterns you have created in the tRestRequest component. You will see your browser display your data.

 

To call it using Java, you will need to understand how to do this. Here is a page with a few examples....

https://www.twilio.com/blog/5-ways-to-make-http-requests-in-java