Hi,
I am wondering if I can use external libraries in TOS jobs and/or routines and how.
Indeed I am working in a java environment, I do have a Spring environment setup with lots of functionalities up and running, and it would be quite nice if I could embed, reuse and then manipulate my java objects (managers, DAOs, POJOs, etc) in the TOS java routines.
It would certainly prevent me from duplicating functionalities and having to maintain twice the code in several environments (Eclipse + TOS).
I saw that when you create a routine you can associate some external libraries but I didn't get exactly what it is intended for.
Can it be used to embed external / custom jar files ? How am I supposed to use this feature ?
I also tried to link my '.Java' project with an eclipse userlibrary that we use, but since '.Java' is a dynamic java project my configuration gets screwed at compilation time. I know I am not supposed to do it this way but I was looking for a workaround so that I am able to load my Spring context in a job.
Has anybody already tried that kind of stuff ?
Any lights appreciated
Hello Shura
There are two ways of referencing the external jars,
1)As rcktan done, create a routine and import external jars into the routine, and then calll the routine in job.
2)Using tLibraryLoad component to load the jar at the begininig of job.
Best regards
Hi Shong,
Thanks for you quick answer.
Another question: in both cases that you wrote i need to attach jar file itself the question : is this possible
to gave only path and TOS will import all the jars that i have instead that i should to attach all the jar one by one ?
Question about TOS 3.2.3: what is the difference between TOS 3.2.2 and 3.2.3 ?
Thanks a lot for the help.
Regards,
Shura