简体   繁体   中英

where to deploy ibm db2 license file in apache karaf

I need to connect to db2 using a java.sql.DataSource, I installed the db2 driver, setup necessary beans in blueprint, everything is fine, until it gets to the point where the driver tries to make a connection. It fails with a very loud error message that the license file db2jcc_license_cisuz.jar needs to "be on the classpath"

Where should I put this file in karaf? I tried installing it as a "wrapped" bundle and doing Import-Package on the license package in the bundle that has the blueprint, but this doesn't seem to work. Should be deployed as a fragment to the bridge?? should i repackage everything?

What is the "correct" way to deploy these "licenses" in karaf? Can't find anything about it in the manual.

Upgraded the driver, downloaded from here: http://ibm.com/support/pages/db2-jdbc-driver-versions-and-downloads

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM