Java + Rails: calling Java code from a rails application

I have an application for rails. I also wrote a method in Java that builds a 4-dimensional tree structure. Its for querying my database. The code is relatively complicated that I do not want to rewrite it in Ruby again. Is there a way to use this Java method that I wrote in my rails application.

This will be for the Heroku hosted application.

If so, how do I know how to do this? What keywords should I use Google? Can someone point me to good resources ...

Rate it.

+3
source share
1 answer

Java- Ruby, . Java .

Thrift. Thrift Ruby Java-. RPC Java Ruby Rails Heroku.

, , , Java STDOUT. Ruby (.. `java MyProgram`).

+5

All Articles