October 2013
Beginner to intermediate
270 pages
5h 41m
English
The tJava component allows one-off logic to be added to a job. Common uses of tJava include setting global or context variables prior to the main data processing stages and printing logging messages.
Open the job jo_cook_ch05_0000_tJava.
tJava component.System.out.println("Executing job "+jobName+" at "+TalendDate.getDate("CCYY-MM-dd HH:mm:ss"));If you examine the code, you will see that the Java code is simply added to the generated code as is. This is why you must remember to add ; to the end of the line to avoid compilation ...
Read now
Unlock full access