Hello everybody
We have the following scenario :
One web application deployed on Tomcat. It uses a DataSource, XxxDS configured in Tomcat as a shared resource.Kitchen/Pan are used to import data into the DB. It is launched from java using a .bat/.sh script. Every job/transformation has its own database connection configured.
The question :
Is there a possibility for the jobs/transformations to use the same datasource(and connection pool) as the application, retrieved from JNDI ?
I managed to make a JNDI Oracle connection using simple-jndi, but I assume that is a JNDI resource inside Kettle and not inside Tomcat. Is there some method to invoke something like :
InitialContext cxt = new InitialContext(); if ( cxt == null ) { throw new Exception("Uh oh -- no context!"); } DataSource ds = (DataSource) cxt.lookup( "java:/comp/env/jdbc/XxxDS" );
We have the following scenario :
One web application deployed on Tomcat. It uses a DataSource, XxxDS configured in Tomcat as a shared resource.Kitchen/Pan are used to import data into the DB. It is launched from java using a .bat/.sh script. Every job/transformation has its own database connection configured.
The question :
Is there a possibility for the jobs/transformations to use the same datasource(and connection pool) as the application, retrieved from JNDI ?
I managed to make a JNDI Oracle connection using simple-jndi, but I assume that is a JNDI resource inside Kettle and not inside Tomcat. Is there some method to invoke something like :
InitialContext cxt = new InitialContext(); if ( cxt == null ) { throw new Exception("Uh oh -- no context!"); } DataSource ds = (DataSource) cxt.lookup( "java:/comp/env/jdbc/XxxDS" );