Example: Deploying MySQL JDBC driver
As an example, this section explains the specific steps required to register the JDBC driver for the MySQL database.
To register the JDBC driver for the MySQL database:
- Unzip the BundleWrapper zip file. If possible, extract the BundleWrapper in C:\temp. If you use a different location, see the InstallPath property in step 5.
- Download the MySQL JDBC
driver binary jar
com.springsource.com.mysql.jdbc-5.1.6.jar from
this location:
http://ebr.springsource.com/repository/app/bundle/version/detail?name=com.springsource.com.mysql.jdbc&version=5.1.6
Note: If you used Internet Explorer, the file might be downloaded with a .zip extension. If so, rename the downloaded file: change the extension to .jar. - The JDBC driver of MySQL comes in a single jar and can be used as such. Therefore, you can skip the preparation step to merge multiple jars into one jar file. Place the com.springsource.com.mysql.jdbc-5.1.6.jar in the BundleWrapper\OriginalJar folder.
- Rename the
BundleWrapper\examples\properties.mysql.txt file
to
properties.txt and copy this file to the
\BundleWrapper folder. Modify this file to
reflect the driver specifics.
See Properties.
- Run build.bat. A zip file (OSGi bundle) is generated. This file is required to start up the bundle.
- Complete these steps:
- In ION Desk, select . Then click the Configuration Files tab.
- In the Custom database drivers section, click .
- Upload the zip file.