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

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

[resolved] Loading properties on application startup

Hello team,

I need to load properties from properties file only once, when my talend application starts. This property file will be external to the application (not part of jar or war).
1. What would be the best approach to implement this scenario? I can load it via static java but is there any best practice in talend to do this?
2. In talend run time is there any folder that is part of the path environment variable? I.e. is there any directory where I can place my config files so that they can be accessible to the application without my having to provide full path i.e. by path relative to the root of runtime environment etc? so that in my upload mechanism/component I can say something similar to "load file from ./deploy/config" rather then "load file from C:/Talend/runtime/..."

Thank you!
Svetlana
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

1) Stop service.
2) Go to <Talend ESB runtime install path>\container\etc and create a file called yourservicename.cfg, edit the file as below:

varName1=newValue1;
varName2=newValue2;
3) Start service.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

1) Stop service.
2) Go to <Talend ESB runtime install path>\container\etc and create a file called yourservicename.cfg, edit the file as below:

varName1=newValue1;
varName2=newValue2;
3) Start service.
Anonymous
Not applicable
Author

Thank you!