Multi Dataadapter (dev/prod)

I would like to use different Dataadapter depending on the context by passing a parameter to it.
I tried this solution but it doesn't work :
<propertyExpression name=""><![CDATA[$P{DataAdapterLocation}]]></propertyExpression>
<parameter name="DataAdapterLocation" class="java.lang.String" evaluationTime="Early">

Can you help me ?

Nicolas Drouin's picture
Joined: Nov 23 2020 - 2:54am
Last seen: 7 months 3 weeks ago


muhammad.salman - 1 year 1 month ago

1 Answer:

Please pass connection in Connection Expression.

example:  java.sql.DriverManager.getConnection("jdbc:postgresql://HostServer:Port/DBName", "UserName", "Password")

muhammad.salman's picture
Joined: Nov 24 2021 - 1:43am
Last seen: 1 year 1 month ago