Code Monkey home page Code Monkey logo

fuse-db2-feature's Introduction

DB2 Driver Feature

An Apache Karaf feature to add the OSGIfied version of DB2 driver to the container. This project does not provide the DB2 drivers, you should download it from the IBM website.

How to use

Just run mvn clean install with the required properties (use the -D flag) and the features.xml file should be generated on your maven repository. Take the features file and add to the container profile:

  1. profile-edit --repository file:/path_to_feature/features.xml your-profile (or the mvn path if you've installed the feature directly into the container repo);
  2. profile-edit --feature db2-jdbc your-profile [version]

After adding the feature to your profile, the osgi:list | grep -i db2 should look like this:

[ 169] [Active     ] [            ] [   80] db2jcc_license_cisuz (1.3.1)
[ 170] [Active     ] [            ] [   80] db2jcc4 (10.5)

There's six properties you have to define before generating the feature.xml file. Take a look at the table bellow:

Property Description Example
db2.driver.locationURL The URL where the DB2 driver is located. Should be a path where your container will look for the driver file:/${user.home}/drivers/db2jcc4-10.5.fp6.jar
db2.license.locationURL The URL where the DB2 driver license is located. file:/${user.home}/drivers/db2jcc_license_cisuz-1.3.1.jar
db2.driver.bnd.locationURL The URL where the DB2 driver bnd property file is located file:/${user.home}/drivers/db2jcc.bnd
db2.license.bnd.locationURL The URL where the DB2 driver license bnd property file is located file:/${user.home}/drivers/db2jcc.bnd
db2.driver.version The DB2 driver version. Take an extra care to not put versions there's not on the semver format.
db2.license.version The DB2 driver license version. Take an extra care to not put versions there's not on the semver format.

This project already prepared the Bnd property file for this feature, so the container's wrap mechanism should work as is. There's a little catch on the import packages from the DB2 driver that shouldn't be available on the container nor on the driver itself. Just take the Bnd files from the target/classes directory after running the mvn command and add it to a place accessible to the server container.

Credits

fuse-db2-feature's People

Contributors

ricardozanini avatar

Stargazers

Andriy Kalashnykov avatar

Watchers

 avatar Andriy Kalashnykov avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.