This is a poor solution in terms of efficiency and optimisation. You have to create a new Java Virtual Machine each time you want to run a report. There are better ways to do this using Web Services/RMI/ JRuby.
Interesting. Good Article and good solution.
Matt, Is it possible to call Jruby in ROR application?