Show TOC

Converting JDBC JARs to OSGi JARsLocate this document in the navigation structure

Convert JDBC driver JARs to OSGi bundle JARs to use with Gateway Java.


  1. Download the JDBC driver JAR file.
    This example uses a Microsoft SQL Server JDBC driver JAR file.
  2. Open Eclipse, and select Start of the navigation path File Next navigation step New Next navigation step Other End of the navigation path.
  3. Under Plug-in Development, select Plug-in from Existing JAR Archives, and click Next.
  4. Click Add External, browse to the JDBC JAR file that you downloaded, and click Next.
  5. In the Plug-In Project Properties dialog:
    1. Verify that these options are all selected:
      • Analyze library contents and add dependencies
      • Unzip the JAR archives into the project
      • Update references to the JAR files
    2. Set the value of This plug-in is targeted to run with to OSGI framework, and select Standard.
    3. Enter values in these fields:
      • Plug-in
      • Plug-in Version4.0.2206.100
      • Plug-in Namesqljdbc
      • Plug-in VendorMicrosoft
      Note These sample values are for a SQL Server JDBC driver; actual values depend on the JDBC JAR file to convert.
    4. Click Next, then click Finish.
  6. Select the Runtime tab, and validate that the Exported Packages list is populated. If it is not:
    1. Select the MANIFEST.MF tab, and manually add the packages.
      The packages are inside the selected JDBC driver JAR file. For example:

    2. Save your settings.
  7. Select the Runtime tab again, verify that the Exported Packages list is populated, and save the project.
  8. In the Package Explorer, right-click the project folder, and select Export.
  9. In the Export dialog, expand Plug-in Development, select Deployable plug-ins and fragments, and click Next.
  10. On the Destination tab, enter a directory, and click Finish.
  11. Verify that the JAR file was generated in your destination directory, in the plugin folder.
    You can safely ignore any error messages.
  12. Copy the generated OSGi bundle JAR file to the SMP_HOME\Server\pickup directory.