#1 2009-10-09 11:18:54

rompelstilchen
Member
Registered: 2009-10-09
Posts: 12

exported scripts

Hi,

can someone point me a tutorial/helpfile/whatever for how to call the runJob() from my own java programs
I don't want web services, I want to launch the generated code from java environnement (programaticaly)

I've tried manny things (even calling the generated ..._run.bat or.jar) by using Runtime.getRuntime().exec(command);

I also tried to inherit the generated testclass and use runJob() but it fails miserably

also, what about the items folder, is it needed ?

have a nice day

Offline

#2 2009-10-10 09:03:33

shong
Talend team
Registered: 2007-08-29
Posts: 10305
Website

Re: exported scripts

Hello guy
I think this [Forum, topic 5932] transport data from .dbf to Netbeans can help you.

Best regards

         shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2009-10-14 16:02:07

rompelstilchen
Member
Registered: 2009-10-09
Posts: 12

Re: exported scripts

actualy i got 2 talends exported scripts, test and test2

so I wrote a code that parse the exported folder, finds the runjob and launch it

I assumed that the "routines" packages are always the same common class between exports (???)

but i am not sure, as for the lib/*.jars files

+ there are other extra properties files that I am not sure they are mandatory

last question : is it possible to define a parametter for the job so it loads an mdb from a folder where i upload them ?

you'd save my life if one could answer these :-) i have to make a demo for my customer on friday

thx in advance to anyone

have a gr8 day

Offline

#4 2009-10-14 16:36:53

Morbo
Member
Company: Inserm
Registered: 2009-05-14
Posts: 228

Re: exported scripts

For your last question, it the mean of "context variables" add at the end of the batch file :
--context_param myVar=myValue

Offline

#5 2009-10-14 17:09:53

rompelstilchen
Member
Registered: 2009-10-09
Posts: 12

Re: exported scripts

thx

but how do you refer to it
for instance, i crea a db connection to the mdb but i should be able to forward the value of the args to
the db file name ...

any clue?

sheers :-)

Offline

Board footer

Powered by FluxBB