Ramblings

Posts Tagged ‘jdbc

22 Sep, 2008

JRuby to check connectivity…

Posted by: Matt Williams In: jruby| programming

I had an issue reported by a developer where their jboss connection pool wasn’t working properly. It looked good to me, so I decided to verify that everything worked in so far as connectivity from the box. So, I used the following jruby script to help:

require ‘rubygems’
require ‘jdbc’
require ‘java’
Java::oracle.jdbc.driver.OracleDriver
url = "jdbc:oracle:thin:@SERVER:1521:DB"
user = "user"
pass [...]

Tags: , ,

Categories

DrakNet Web Hosting