Note that there are some explanatory texts on larger screens.

plurals
  1. POWhich is the best database strategy for a JRuby on Rails + legacy Java code?
    primarykey
    data
    text
    <p>We have a medium size Java application that needs some refactoring.</p> <p>We are considering migrating towards JRuby on Rails. Mainly because of the productivity that Ruby on Rails offers and for the many existing plugins that will reimplement the web logic.</p> <p>However a large part of the application should stay in Java, we do not want to rewrite all the business logic (specially since it uses many Java technologies such as RMI).</p> <p>A key point for our refactoring is sanitizing our database management, which is currently a mix of hand coded SQL operations and some objects stored in db4o.</p> <p>From JRuby we can call any legacy java code. Great!</p> <p>However many Ruby on Rails plugins asume the use of ActiveRecord to manage the database. <em>Accessing the ActiveRecord data from Java seems non trivial.</em></p> <p><strong>Which is best strategy to manage the database between JRuby on Rails and the legacy Java code?</strong></p> <ul> <li>We could use db4o for everything, but would loose the benefit of some Ruby on Rails plugins, and would need to manage objects "manually" on the Ruby side</li> <li>We could use ActiveRecord for everything and define some kind redundant mapping on the Java side. Which would be the best strategy?</li> <li>We would use a Java ORM technology (Hibernate, Cayenne?) and then map the model in ActiveRecord. How does this idea compare to the previous one?</li> <li>Can we do some magic using Jruby 1.4 become_java!?</li> </ul> <p><em>What do you think?</em> </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload