Toivo,

When you do this, you can use:


Class.forName(“…”, true, Thread.currentThread().getContextClassLoader())


That will ensure that you are using the ClassLoader for you NAR.


Thanks

-Mark






From: [email protected]
Sent: ‎Tuesday‎, ‎February‎ ‎24‎, ‎2015 ‎10‎:‎13‎ ‎AM
To: [email protected]





Chad,

Right, I understand.
So I move on.

This is my first NiFi controller service, so don't expect much.
:)

But I am sure together we can make it usable.

Where do you keep JDBC driver jar file?
Is it inside nar or in the NiFi classpath?

Mark, Joe,
JDBC and pooling implementations are capable of loading JDBC drivers for
different databases by driver class name, for example
(oracle.jdbc.driver.OracleDriver), but jar which contain driver class must
be in classpath.
Don't know how NiFi ClassLoaders will handle this.

Toivo




--
View this message in context: 
http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/New-Database-Connection-Pooling-Controller-Service-tp582p828.html
Sent from the Apache NiFi (incubating) Developer List mailing list archive at 
Nabble.com.

Reply via email to