Usin JRuby within a Rails project


I’m using JRuby to talk to iText a Java library. I have got it working
in a small Ruby project. Now I would like to integrate this in an
existing Ruby on Rails project. So I have added the code from my Ruby
file into one of my ROR files and it doesn’t work. How can I talk to
Java without having to run ROR on top of JRuby? Is this possible with
JRuby or do I need to look elsewhere, like RJB for example?

Kind regards,