Ramblings

Posts Tagged ‘jruby

This is a how-to for using jmx and rrd4j, a java implementation of rrdtool, to report on app server statistics.
Thanks to Jeff Mesnil(author of jmx4r), Werner Schuster (JMX the Ruby way with jmx4r), sishen (JRobin sucks), and the rrd4j team.
You’ll need the following:

JVM 1.5 or higher — JRE is not enough, you also need the [...]

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