[resolved] How to import Package to effect entire Talend Job

One Star

[resolved] How to import Package to effect entire Talend Job

Hey,
I know how to import a package into a single tJava component, but I would like to be able to import the package to effect the entire job.
Screenshot is what I currently have.
I would like to import java.util.Calendar once and be able to use it in any component in that Job.
Thanks,
Brian

Accepted Solutions
One Star

Re: [resolved] How to import Package to effect entire Talend Job

Hi Brian,
An easy way to do this would be to use the tLibrary component to import actual library files from java. This way you will be able to import an entire jar and any package. Although I am sure that if you import a package through the tJava component it is globally imported by default meaning you can use it in other components. (if you click on the code tab at the bottom left you will be able to see it will be part of your imports)

View solution in original post


All Replies
One Star

Re: [resolved] How to import Package to effect entire Talend Job

Hi Brian,
An easy way to do this would be to use the tLibrary component to import actual library files from java. This way you will be able to import an entire jar and any package. Although I am sure that if you import a package through the tJava component it is globally imported by default meaning you can use it in other components. (if you click on the code tab at the bottom left you will be able to see it will be part of your imports)

View solution in original post

One Star

Re: [resolved] How to import Package to effect entire Talend Job

Thanks Dean,
Exactly what I was looking for.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog