I'm currently trying to convince my boss to let me do a new web app in
Ruby on Rails.
However, it needs to use at least one fairly big and complex class that
is currently written in Java.
- run rails on JRuby:
no problem to call the Java class, but how well does Rails run on
JRuby? The JRuby site says something like "it probably works, but we're
not sure". Has anybody tried Rails on JRuby for a real application?
- write a command-line interface for the java class, and call it as a
shell command from ruby.
- wrap the java class in a servlet and call it via http (I only need it
to do some complex processing on some strings)
- re-implement the class in Ruby (a lot of work, and twice the
maintenance in the future)
Any thoughts on what would be the best option?
I'd be particularly interested in hearing from anybody who tried or is
running rails on JRuby.