Reading multiple components connection details from database

Highlighted
Five Stars

Reading multiple components connection details from database

Hi,

 

I have a job which has both mysql and sql server components. I need the data to be transferred from sql server to mysql. I need the connection details for both the components coming from database. How do I achieve this?

 

Thanks in advance
Rathi

Highlighted
Moderator

Re: Reading multiple components connection details from database

Hello,

From your description, it seems that you are looking for tContextLoad or implicit tContext feature.

Could you please have a look at this scenario:TalendHelpCenter: Scenario: Reading data from different MySQL databases using dynamically loaded con... to see if it is what you are looking for?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Five Stars

Re: Reading multiple components connection details from database

Hi Sabrina,

 

Thank you, I understand the usage of tcontextload and implicit context loading. However, I have nearly 75 jobs. And each job loads data from sql server to mysql. The connection details are coming in from the context groups(sourcecontext and destinationcontext) where the connection details are hardcoded. 

 

What I want is a job where I can load my sourcecontext and destinationcontext from the database. I do not want to go to every job now and change any configuration in it. I want a wrapper where I can write to the existing contexts (sourcecontext and destinationcontext)

 

Thanks

Rathi

Highlighted
Moderator

Re: Reading multiple components connection details from database

Hi,

You can set context variable values from DB table.

Please have a look at my screenshot

1.png

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARTNER 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

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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog