Version : Talend v6.1
Into the TAC, under the "Job Conductor" tab, I can select the context execution for my job, and I've got the "Apply context to children" checkbox.
So, if I choose that my parent job is executing with the PROD context, all the child jobs will excecute with the PROD context.
It works fine.
Into the TAC under the "ESB Conductor" tab, I can select the context execution for my WebService (just under "Runtime Config").
But I haven't got the "Apply context to children" checkbox !
So, whereas my parent job is executing with the PROD context, the child jobs don't execute with the PROD context. In fact, the childs maintain the excecution context that I had defined into the tRunJob component, when I had developped the jobs into the Studio.
I am wrong in my process ?
Is there a workaround, to have this "Apply context to children" feature, on the service into the "ESB Conductor" ?
Could you please check the option "transmit whole context" in all of the tRunjob? Let us know if this issue is resolved.
Thanks for response.
With the option "transmit whole context" checked, the context variables declared into the parent job are transmitted to the child job.
It's not what I want to do.
The goal is the following :
In my parent child, I've got 2 contexts (DEV and PROD).
In my child jobs, I've got the same 2 contexts (DEV and PROD).
In my child job "job_generate_logs", wich responsability is to generate logs in a specified repository, I've got a group context "ctx_path_logs" (only added in this child job, because it is his own responsability, not in his parent).
FYI : "ctx_path_logs" describes the paths where to write the logs, for the DEV environment and for the PROD environment.
Before publish, I can set, into the tRunJob component, the rigth context. But it's vey tiresome to do this action for all my tRunJob, at each time I want to split DEV or PROD.
So I want to use, into the TAC, in the "ESB Conductor" tab, the runtime configation of the service : select the rigth context here (for example PROD context). But when I do that, only the parent job is running with the PROD context. The child jobs stay running with the context itinialized into the tRunJob component.
However, the "Job Conductor" tab, for the task, have the "Apply context to children" option ; that's work finely, even if the tRunJob components specified an different context. It's very usefull.
I would like to have the same feature in the "ESB Conductor" tab.
It seems the context is not applied to children jobs when the parent job is published from Studio to the Artifact repository and then run in TAC.
Does it work with build a zip file, then import the zip file from TAC rather than an "artifact" task from Nexus?
Please let us know if this online user guide helps.
Thanks for replying. The link you provided is helpful.
However, when I import the zip file of the job (built from the Studio as standalone binary, items + java sources checked), TAC said: "this job was created by an unsupported version of Talend Studio...". I am using version 7.1.1.
What may go wrong?
When you build or publish a Job, you must select the Items check box to include the Job items file with the Job build. To do this, open the Studio Job and republish the Job with the Items check box selected, then add the task to Job Conductor.
I have already done so.
Could you please go to the following thread where I gave more details on this ?
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Take a look at this technical overview video of Talend API Designer
Find out how to get started with APIs