Set and Validate Context in TESB (RESTFUL Service)

Eight 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!

Tags (3)
Nine 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

Nine 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

Eight Stars

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

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

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read