Reputation: 1608
I've multiple DB connections in a Kettle (Pentaho Data Integration) trasformation.
There are some lookup steps and a table output steps. They must use the same DB connection.
I'm searching a way to change the DB connection in a step and automatically change the connection also in the other steps. Is it possible?
I know that i can use variable readed from parameters inside the connection definition, but i'm searching a sort of GUI way.
Upvotes: 0
Views: 2169
Reputation: 1822
First implementation use jdbc connection pool. Set pool size same as number of steps in transformation demand connections to DB.
Another case to define separate connection for each step. It is much easier if you use jndi preconfigured in $KETTLE_HOME/simple-jndi/jdbc.properties
For example on image underneath two variables point on master and slave connection. This will allow you to choose appropriate connection.
How to configure jndi in Pentahoo Kettle http://wiki.pentaho.com/display/EAI/.03+Database+Connections
Upvotes: 1