0.0
No commit activity in last 3 years
No release in over 3 years
Add relevant .jars to your Java $CLASSPATH, install this gem and require 'jdbc/openedge' within JRuby to load the driver.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.0

Runtime

 Project Readme

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).