Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

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!
Labels (3)
2 Replies
Anonymous
Not applicable

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

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.