Rails using Custom Java Persistence and Codebase?

3 views
Skip to first unread message

Eric

unread,
Aug 22, 2006, 8:54:23 PM8/22/06
to rubyonra...@googlegroups.com
Hello,

I have a mature Java codebase that includes my own database persistence
mechanism. I simply want to build a web UI around the existing code.
I've read a lot of good things about Ruby, obviously. However, I don't
really want to code my logic in Ruby other than the UI and UI controller
layer, and I don't need the Rails database persistence later. I would
end up using JRuby to call out to my Java APIs as web requests are
received.

The question is, am I better off using another web application server
environment (there are tons out there -- Tapestry, Spring, WebObjects).
In fact I am most familiar with WebObjects and I think it is a very
powerful environemnt, and I'm leaning towards it right now. Would
anyone advise the use of Ruby on Rails instead, or in combination with
WebObjects to pick up the app server pieces that WO is missing (if any)?
In short, if I don't need/want to take advantage of the powerful Ruby
language for my object model and business logic, and I don't need Rails
DB persistence, then is there a benefit of using RoR over WebObjects,
Tapestry, or Spring?

Thank you for your consideration.

--
Posted via http://www.ruby-forum.com/.

Charles O Nutter

unread,
Aug 23, 2006, 12:31:05 PM8/23/06
to rubyonra...@googlegroups.com
On 8/22/06, Eric <rails-mai...@andreas-s.net> wrote:
The question is, am I better off using another web application server
environment (there are tons out there -- Tapestry, Spring, WebObjects).
In fact I am most familiar with WebObjects and I think it is a very
powerful environemnt, and I'm leaning towards it right now.  Would
anyone advise the use of Ruby on Rails instead, or in combination with
WebObjects to pick up the app server pieces that WO is missing (if any)?
In short, if I don't need/want to take advantage of the powerful Ruby
language for my object model and business logic, and I don't need Rails
DB persistence, then is there a benefit of using RoR over WebObjects,
Tapestry, or Spring?

I haven't seen any replies, but I'll weigh in from a JRuby core perspective...

This seems like a perfect application of JRuby. Rails is great as a full suite of services, but each service independently is useful as well. I don't see that there's anything wrong with using the "VC" part of "MVC" with a different model and persistence layer.

I have also been disappointed with most of the Java-based web frameworks, almost entirely due to their over-heavy, over-complicated approaches to implementing the view and controller portions of an app. If I were to write an application now, I would give strong consideration to something more Railsy, even if it were backed by Java-based services.

If you choose to go forward with this approach, Eric, the JRuby team will be very interested in helping make it happen.
 
--
Contribute to RubySpec! @ www.headius.com/rubyspec
Charles Oliver Nutter @ headius.blogspot.com
Ruby User @ ruby.mn
JRuby Developer @ www.jruby.org
Application Architect @ www.ventera.com

Eric

unread,
Aug 23, 2006, 5:20:02 PM8/23/06
to rubyonra...@googlegroups.com
Thank you for the offer of support with JRuby. I appreciate it. What I
think I'm going to do is develop the site in a combination of WebObjects
and RoR/JRuby. I obviously need to experiment with RoR since I've never
used it (as opposed to WebObjects which I am both familiar and happy
with). If I need help with JRuby I'll let you know. I'll also plan on
posting my impressions of RoR vs. WebObjects as I dig into RoR.

Thank You,
Eric

Reply all
Reply to author
Forward
0 new messages