• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Java runJob with parameters

#1 2012-05-15 18:26:45

MBE
New member
Registered: 2012-04-10
Posts: 2

[resolved] Java runJob with parameters

Hello,

I would like to know how to pass parameters (--context_param) to Talend in Java through the method runJob(...)

Here my code :

| Extractor_Invoice_by_People ambulances = new Extractor_Invoice_by_People()
| String[] s = ['--context_param test=test']
| ambulances.runJob(s)

Note : this code is in groovy language, but it is similar to Java

Thanks,
MBE

Offline

#2 2012-05-16 04:29:36

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: [resolved] Java runJob with parameters

Hi

Welcome to Talend Community!

You might find solution with this topic [Forum, topic 10915] Reading java or protobuf object.

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-05-16 10:37:59

MBE
New member
Registered: 2012-04-10
Posts: 2

Re: [resolved] Java runJob with parameters

Hi,

Thanks for your help, I find the solution here : http://talendforge.org/forum/viewtopic.php?pid=41208#p41208 at the post number 21.

In fact, you have to add the folder which contains the Default.proerties under the "src" folder .(http://talendforge.org/forum/postgallery.php?pid=41208&filename=4.png)

Regards,
MBE

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » [resolved] Java runJob with parameters

Board footer

Powered by FluxBB