One Star

How to make a job exported via "OSGI Bundle for ESB" use context vars?

I developed and tested a job successfully in Open Studio for ESB. It uses some context variables. Now I want to use it from Runtime_ESBSE. But exporting it as a OSGI bundle doesn't give me the option to include context. When it runs from the runtime, all values are seen as "null". What's the best way to replicate my development context and have the runtime use it?
3 REPLIES
Moderator

Re: How to make a job exported via "OSGI Bundle for ESB" use context vars?

Hi,
Could you please check the related topic Forum 32445.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: How to make a job exported via "OSGI Bundle for ESB" use context vars?

Hi,
Could you please check the related topic Forum 32445.
Best regards
Sabrina

After looking at that topic, I have some questions. If my job is deployed at
<TalendRuntimeInstallationPath>\container\deploy\MyService-0.1.jar
My cfg file has to be
<TalendRuntimeInstallationPath>\container\etc\MyService.xml
Correct? Or is it MyService.cfg?
Also, the layout. Should it be like this?
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="MyPassword">xyz123</entry>
<entry key="MyHost">192.168.0.215</entry>
<entry key="MyFolder">/home/something</entry>
</properties>
One Star

Re: How to make a job exported via "OSGI Bundle for ESB" use context vars?

Hi Juan,
cfg files are simple property files
MyPassword=xyz123
MyHost=192.168.0.215
MyFolder=/home/something

Thanks for your post Sabrina, I was looking for external env. config too Smiley Happy
Best regards
Gabriel