Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ALL,
Does anyone know whether there is global setting in talend for SMTP host?
How can I change all the existing setups of SMTP host for all talend jobs to a new one?
Example
current setup : "
syd-print.companyname.com"
New setup : "NewSyd-print.companyname.com"
Thanks
This depends upon how you are using Talend and which products you are using. But you can do this in all versions. The most basic way would be to use context variables and to ensure that at the beginning of each job, the context variables that could change are set with the current values.
Thanks rhall for the suggestions. I used context variables before on emails and they worked well. For the SMTP host,
I am looking for a "global setting" if any so that I just need to set up once without having to set up context variables for each job as I have many existing jobs to change.
Unfortunately there is no way to do this after the jobs have been compiled with hardcoded values....as in your example. Essentially each Talend job is a Java application in its own right. So if you build it with functionality to do this, no problem. But since it has not been built in, you will have to change the jobs to facilitate this.
There's a tool created by Jan Lolling: https://github.com/jlolling/talend-job-refactoring use it at your own risk as tampering with the files in the workspace/Git repo might be risky.
We also have a feature request to introduce to the studio itself this search and replace, feel free to raise a support case and explain your use-case + provide this reference TUP-33978