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 |
|
11 |
|
10.2B |
|
10.2A |
|
10.1C |
|
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).