Could you explain your reasoning as to why you need a new framework?  If
someone wants a Rails like framework for JRuby, why would they not just
use Rails on JRuby?  If you were to make a diverging framework, as you
mention, why would it need to have anything to do with Struts 2?  What
parts of the S2 eco-system would you keep?  Would trying to make it part
of Struts 2 not preclude you from making full use of JRuby?  If you want
to do something Rails-esque on the Java platform then there is already
the fantastic Grails.

Sorry if this sounds negative.  I'm just not sure if there really is a
need to try and merge in a new Ruby based framework and S2. 


----- Original message -----
From: "Tom Schneider" <[EMAIL PROTECTED]>
To: "Struts Developers List" <dev@struts.apache.org>
Date: Sun, 02 Dec 2007 14:13:47 -0600
Subject: JRuby in Struts 2

These last 2 weeks, Richard Burton and I have been working on adding 
JRuby support to S2.  We've been successful in getting a very basic 
action up and running, but we're running into something of an impedance 
mismatch between S2 and Ruby.  Some of the issues we've run into:

1. Ruby's object properties are typeless, this means that when we go to 
set values on ruby actions and ruby domain objects, the type conversion 
is useless because we can't look at the property type to figure out what 
to convert it to.

2. No annotations in Ruby, a lot of functionality in S2 is driven 
through annotations.

3. For the reasons stated in #1 and #2, it's hard to recreate the domain 
model on a save action so the properties can be set back onto the domain 
model.

For these reasons, it quickly becoming clear to me that we can't just 
create s2 actions in ruby.  The language has too many differences with 
Java to really be a drop in replacement.  (Groovy is much better in this 
regard)  So the only alternative I can think of is to create a 
fundamentally new web framework that runs in s2, but uses Ruby as it's 
language.  So I'm curious to see where others on the dev list see Ruby 
fitting into the s2 ecosystem.  Should we have a rails-like framework 
that is pretty close to Ruby on Rails and makes an easy transition from 
rails?  Or do we want something that diverges from the rails and 
provides an alternate to rails development on the JRuby platform?  This 
is a Brave New World for struts so I think it's useful to get some ideas 
on where we might take this.
Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to