Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to access environment/contextStr inside Spring xml?

Hi, 

 

How can I access the context name that route is running under ( contextStr) inside Spring xml, if I am running the route in Talend studio? 

 

The requirement I have is, I want to use property place holders in spring xml for a database connection. I have different values for different environments. Now, I want to load the ${env}.properties based on the context/env we are running the route under. question is how I can get ${env} replaced with contextStr name?

 

Thanks,

Sowjanya

 

Thanks,

Sowjanya. 

 

Labels (4)
1 Reply
n999
Contributor II
Contributor II

Hi

Wondering if you managed to work out how to do this? I'm also interested in passing the ${env}.properties based on the context/env contextStr

Cheers

n