Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

Use context parameters in spring tab (Mediation perspective)

Highlighted
One Star

Use context parameters in spring tab (Mediation perspective)

 Hi,
I want to parameterize database-properties for test- and live-system. Is it possible to access conntext parameter in Spring-tab like this:
<bean id="db_access"
          class="org.springframework.jdbc.datasource.DriverManagerDataSource">
       <property name="driverClassName" value="net.sourceforge.jtds.jdbc.Driver" />
       <property name="url" value="<context.url>" />
       <property name="username" value="<context.user>" />
       <property name="password" value="<context.pw>" />
</bean>

Thanks for help!
Highlighted
One Star

Re: Use context parameters in spring tab (Mediation perspective)

Try to use PropertyPlaceholder . Context variables initialized similar way during Runtime execution.
1. http://camel.apache.org/using-propertyplaceholder.html
Highlighted
One Star

Re: Use context parameters in spring tab (Mediation perspective)

Did you manage to do it ? I'm trying to do exactly the same thing.
I also found a request for that feature on talendforge   but it doesn't seem to have any activity on it.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read