Hi, does anyone have a recipe for implementing a pure JDBC connection
pool in Rails?
I’ve got a lot of existing Ruby classes that leverages JDBC database
connections and work on resultsets that I’d like to be able to use in a
simple Rails app. Most of these classes work on databases or directory
servers that will never go near a Rails model or ActiveRecord.
All of the howto’s I’ve seen so far seem to be to directed (quite
understandably!) at getting connection pooling working for ActiveRecord,
and it’s something I’ll also probably get running for the small amount
of activerecord based code that I’m using in this app.
What I’d love to be able to do is dip into a pool of persistent
connections and return a single JDBC connection object to pass to any of
my existing library of methods so that I don’t have the overhead of
setting up and tearing down a connection for each Rails controller
action that is accessed.
Anyone know how this could be achieved?
To unsubscribe from this list, please visit: