erogol
erogol

Reputation: 13614

Using java and Ruby on rails at the same time... possible?

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 :)

Upvotes: 0

Views: 936

Answers (2)

Pasted
Pasted

Reputation: 864

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

Upvotes: 1

Marnen Laibow-Koser
Marnen Laibow-Koser

Reputation: 6337

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.

Upvotes: 2

Related Questions