Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have different contexts in my RESTFUL service. When deploying on the Runtime, I use the following to set the appropriate contexts.
config:edit <JOBNAME>
configroperty-set context production
config:update
refresh
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?
Thanks!
Hi,
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 ?
Eric
Hi,
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:
bundle:refresh
Eric