How to access environment/contextStr inside Spring xml?

Six Stars

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. 

 

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.