Six Stars

Set and Validate Context in TESB (RESTFUL Service)

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>
configSmiley Tongueroperty-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!

  • ESB
Tags (3)
3 REPLIES
Seven Stars

Re: Set and Validate Context in TESB (RESTFUL Service)

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

Seven Stars

Re: Set and Validate Context in TESB (RESTFUL Service)

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

Six Stars

Re: Set and Validate Context in TESB (RESTFUL Service)

I just did refresh, maybe "bundle:refresh" is the right keyword. Will try. Thanks