Ruby on Rails with Hibernate

Hi!

We are having this Java application that uses Hibernate to store and
persist the data model. We now want to create a second application
that is much like an admin tool for this data. In order to have a
"safe" access to the database, we ideally want to use the same
interface (i.e. Hibernate) for the second application. On the other
hand we also would like to try out Ruby on Rails, as it seems a
valuable framework for the admin application we want to create.

As far as I have seen RoR and Hibernate do not work well together. RoR
uses it's own persistence mechanism, ActiveRecords and does not
support Hibernate. As said earlier we do not want to use two different
interfaces for the database access and would like to stick to
Hibernate. What I was thinking now is the following: Would it be
possible to run RoR with the JRuby interpreter and access the
Hibernate persisted Java classes with JRuby? The data model would then
be based on the Java classes. Is it possible to change the data model
from ActiveRecords to these Java classes in RoR?

thanks, iS

Up, up...

Has anyone any suggestions, comments, experiences on
the above topic?

thanks, iS

Up, up...

Has anyone any suggestions, comments, experiences on
the above topic?

I know nothing about hibernate, but googling for jruby and hibernate
found http://code.google.com/p/activehibernate/

Fred

life will be difficult if you try to do use hibernate from rails ..
since rails only plays nice with active record. take a look at jruby
from sun. but i suspect it will be improbable or impossible to call java
from ruby code. good luck.