Unanswered posts

Post a reply

Write your message and submit

Options

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

kasraouizied
2009-03-02 15:58:11

how we can export a job as a web service ? 
I have read this http://www.talendforge.org/wiki/doku.ph … mplest_job
but in TOS I don't found this future, please can someone telle how we can export a job as web services

averri
2008-10-07 00:08:40

I see other solutions for the long running process (without using TIS):

1) Using BPEL process to wrap (invoke) the Talend job webservice
- Create your job as normal, and export it as a webservice;
- Create a BPEL process using Netbeans (or another IDE, with BPEL support), this process will invoke your job synchonouslly, but you will expose the BPEL process as a asynchronous webservice. The BPEL process will remain running until the Talend job finishes (it called "long running process").  That way you could also check, using another soap message, if the job is still running (each process will need an id).

2) Changing the Talend job webservice call from syncrhonous to asynchronous.

Volker Brehm
2008-10-06 22:22:36

A different solution could be to use a scheduler for this. One example is Job Scheduler. You can define a parameterized job and use can start them via a web frontend. May be TIS (provided by Talend) has the same feature.

But in this example you do not have a web service and cant use your own web frontend or program to call the job.

Bye
Volker

suzchr
2008-10-06 17:58:52

I'm agree with your solution. But for me,one of my jobs is running during 2 hours. So I have a problem of Timeout exception. Do you see a solution ?
Thx

pico
2008-10-06 10:04:17

Hi,

I would doing so :

1) Export Job as WebServices
2) Deploy it on a Tomcat Server
3) Call the WebServices from the form (in my case a .NET application)

For exemple :

Code:

MyPackage.myExportedJobService service = new myExportedJobService ();
string[] args = new String[4];
args[0] = "--context_param";
args[1] = "param1=" + this.value1;
args[2] = "--context_param";
args[3] = "param2=" + Server.HtmlEncode(this.txtField.Text);
string[][] sret = service.runJob(args);

Hope that help.

SMaz
2008-10-03 16:33:13

I'd like to use a Web Form to get a couple fields / parameters from a user and then, when they click submit, it would trigger a Talend Flow that would use the data input on the form to query my DB and deliver a data file to the user via e-mail.

Any ideas on how to go about this would be greatly appreciated.  I've read several posts here relating to similar things, but I'd like some pointers from others who have already done this....


THANKS!

Board footer

Powered by FluxBB