Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

import groovy script

I would like to know how it could be to import a groovy script in a talend ESB Studio enterprise ( version 5.2.2); I would like to put this script in the classpath as a ressource: it will be used in a camel route like this:
.setHeader("myHeader").groovy("resource:classpath:mygroovy.groovy") ....
Labels (2)
1 Reply
Anonymous
Not applicable
Author

It is possible, but I would not recommend this since you depend on different class loader algorithms during development (Studio) and deployment (ESB -- OSGi). Furthermore the Groovy and Camel version used in 5.2.2 has issues which forces you to upgrade to 5.3.
Just an advice: if you have the option to avoid using Groovy at all and write your logic in Java, I recommend to to the latter. You will run into many other issues (Groovy related) later on, even if you get the class path problem solved.