title: Java + Rails: Invoking some Java code from within a rails app
body: <p>I have a rails app. I also wrote a method in Java which constructs a 4 dimensional tree structure. Its for querying my database. The code is relatively complex that i dont want to rewrite it in Ruby again. Is there any way I can use this Java method that I wrote in my rails app. </p>
  
  <p>This would be for a Heroku hosted app.</p>
  
  <p>If so how should I go about learning about how to make this happen? What keywords should I google? Can anyone point me to known good resources ...</p>
  
  <p>Appreciate it.</p>