Search code examples
javaruby-on-railsrmijrubyonrails

Convert a Ruby on Rails project to a JRuby on Rails project


is there any particular way to convert a Ruby on Rails project to a JRuby on Rails project? There now is a need to get the Rails side to talk to a Java server via RMI so was wondering how to make the conversion. Thanks.


Solution

  • As @Karl says, it pretty much works but there are a number of caveats you should be aware of:

    • The database adapters will be different from the ones you may be used to. They're based on JDBC. For example, the MySQL adapter install is described here
    • You will generally deploy to Java application servers in production such as Glassfish, Tomcat or Jetty. Typically this is done using Warbler
    • Certain gems with native extensions may not work. See here for details on the what is required