I have different contexts in my RESTFUL service. When deploying on the Runtime, I use the following to set the appropriate contexts.
configroperty-set context production
How can I make sure that the correct context is applied and refreshed? Also, do I need to restart the container for it to take effect?
There is a file .cfg for context in /runtime/etc. It is automatically created when the webservice is deployed from ESB Conductor in TAC.
If you deploy it manually with .kar or .jar, you have to create it manually or with Karaf command (I never tested this last option).
For instance if you REST job is WSREST_TEST, you can create a file WSREST_TEST.cfg with content like :
context = Default
I guess the KARAF command create and update this file. Do you confirm ?
The way you did works too. It creates a .cfg file automatically.
You just have to run this command at the end so that the new property is takend into account:
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Take a look at this technical overview video of Talend API Designer
Find out how to get started with APIs