Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Labels (1)
  • Other

4 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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.
ytuzet
Creator
Creator

Is there a way to start the job with an another context ?
ytuzet
Creator
Creator

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