Skip to content
OpenEdge JDBC driver loader
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/jdbc
.gitignore
LICENSE
README.md
Rakefile
jdbc-openedge.gemspec

README.md

jdbc-openedge

This gem abstracts away the require statements for loading the Progress DataDirect OpenEdge JDBC client drivers. It's useful for supporting multiple versions of OpenEdge that have differing .jar file loading requirements.

Unfortunately, the drivers themselves cannot be stored in this gem as they are proprietary. They can typically be found in an OpenEdge installation directory under $DLC/java.

Usage

Add the gem to your Gemfile for whichever version corresponds to your OpenEdge version (note: don't use the spermy operator, ~>):

gem "jdbc-openedge", "11.1"

Then add the necessary .jar files to your Java $CLASSPATH, and in your code do

require 'jdbc/openedge'

to make the driver accessible to JDBC code running in JRuby.

OpenEdge Versions Supported

The following OE versions are currently supported:

OE Version .jar files required in $CLASSPATH
11.1
  • openedge.jar
11
  • openedge.jar
10.2B
  • openedge.jar
  • pool.jar1
10.2A
  • base.jar
  • openedge.jar
  • pool.jar
10.1C
  • base.jar
  • openedge.jar
  • util.jar

1 The released 10.2B gem requires pool.jar, even though technically it shouldn't be required to load the DataDirect JDBC driver. This was a mistake on my part, which cannot be undone for the 10.2B gem version as RubyGems gem versions are permanent. A simple workaround if you don't have pool.jar would be to just use a blank file, e.g. cd <somewhere in $CLASSPATH>; touch pool.jar.

Support for other versions can be done on an as-needed basis, if anyone else besides me ever uses this gem (pull requests accepted).

You can’t perform that action at this time.