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!
2 REPLIES
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
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.