Employee

ESB Studio - changing the port number of an exported Data Service?

Hi,
This came up on the Webinar yesteday, showing the ESB Studio. The presenter showed how the same Data Service implementation could be configured to use different port numbers and exported (twice as separate bundles), to run in 2 separate TESB containers.
Is there a way to re-configure the port number after the DS bundle has been exported?

Thanks
4 REPLIES
Employee

Re: ESB Studio - changing the port number of an exported Data Service?

Hello,
It?s possible with contexts.
To use contexts:
1. In the Studio
- create DS job. In the tESBProviderRequest component use endpoint value like "http://"+context.serviceHost+":"+context.servicePort+"/esb/provider"
- add context variables serviceHost and servicePort. Set default values.
- export job as OSGI bundle.
2. In the exported jar find out context properties. (file name - Default.properties)
Change serviceHost, servicePort and deploy to Talend ESB.
Best regards,
Yuri
Employee

Re: ESB Studio - changing the port number of an exported Data Service?

There is also a possibility to pass parameters to the job:start OSGi command. You can use
job:start -a "--context_param parameter=value" JobName
Where 'parameter' is a name of the context parameter you would like to change and 'value' is the new value of that context parameter.
One Star

Re: ESB Studio - changing the port number of an exported Data Service?

Is there a way to start the job with an another context ?
One Star

Re: ESB Studio - changing the port number of an exported Data Service?

ok self answer :
job:start -a "--context PRD" TestESB