0

I am currently developing a search engine and I have some implemented algorithms that are written in Java but also I need to get some Database communication which is easy thing in Ruby an Rails. Thus, Is there any way to use both language in the web application development

Regards :)

1
  • 1
    expose the search engine as a webservice and call the webservice from ruby? Or just use SOLR, which already has a gem? Commented Nov 16, 2011 at 15:21

2 Answers 2

2

Easily. You can run Ruby on top of the JVM by using JRuby, or you can have Ruby communicate with Java by using RJB (Ruby-Java Bridge). Or you could reimplement the algorithms in Ruby.

Sign up to request clarification or add additional context in comments.

Comments

1

Sounds like JRuby is the sort of thing you're looking for, although I haven't (yet) used it myself.

JRuby with Rails - including guides for Rails 3 https://github.com/jruby/jruby/wiki/JRubyOnRails

Making Java calls https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby

1 Comment

:D Marnen beat me to it - slow typer :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.