Jruby here?

Hassan S. wrote in post #969321:

On Sat, Dec 18, 2010 at 11:49 AM, Marnen Laibow-Koser
[email protected] wrote:

There are reasons I’d choose MRI or REE over JRuby for specific
apps, but these aren’t them:

So what would your reasons be?

But first you have to make the WAR file – a totally unnecessary task
given that neither Passenger or the glassfish gem makes you do it.

And yet utterly trivial to include in your Capistrano deployment script
(or alternative), so hardly a show-stopper!

Probably true. I’ve never made a WAR file out of a Rails application,
so I don’t know if there are other gotchas…

my experience with Tomcat has been that setup of Tomcat itself is not
easy, even when deploying a prepackaged WAR file.

What “setup”? Untar the distribution, edit the config file if you want
other than the default ports, drop in your WAR file, start. E.Z.

Not in my experience – I had terrible trouble getting Tomcat to
actually work. Perhaps things have changed.

But, horses for courses…

Does that actually mean anything in this connection?


Hassan S. ------------------------ [email protected]
twitter: @hassan

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Sent from my iPhone

On 12/19/10, Mauro [email protected]lid wrote:

On 18 December 2010 21:30, Fidel V. [email protected] wrote:
You use grails too?
I’d like to have some opinions about grails and RoR.
I use both, but lately I prefer grails to develop my applications.
With RoR you have to think about tables, create foreign key, and so
on, with you have to create your domain classes and that’s all.

Yes, I do use Grails as well, and at this precise moment I am working
on a project that required me to use it.

Before jumping into Rails as my primary development framework, I used
to use mainly Grails, and J2EE before that. Groovy is so much like
Java that I just picked it quickly. I also learned Ruby quickly as it
is pretty similar in syntax to Python, which I have and still use it
quite a lot for System Administration.

I think both frameworks are pretty similar and pretty good, and Grails
has the advantage of allowing you to make use of existing Java
frameworks and tons of libraries available. Specially when you need a
reporting solution or support for a certain RDBMS, which does not
happen with Active Record. I haven’t really tried DataMapper or
another ORM framework.

I often decide on what framework to use based on the target platform,
RDBMS and reporting solution. For instance, if the target platform is
Windows, there is no doubt that I will use Grails, since Rails is not
very Windows friendly. If I don’t need any special RDBMS, advanced
reporting capabilities, or Windows, then I go for Rails. In fact I
only develop with Grails on the Windows platform. Other than that, I
use Rails.

In the beginning I used Rails only for websites, but now we are using
it even for developing financial and accounting software.

Now with regards to thinking in tables terms, I prefer it over letting
a framework do everything for me. Contrary to what many people can
say, Object-Oriented programming and the Relational model are
compatible to a certain extent. There are certain OO concepts that are
hard to implement in a Relational model. Take inheritance for
instance. How many approaches do you have for that? They all have
their pros and cons, but none is a perfect match for the real concept.
So, to a certain degree you need to think in terms of tables or use an
ORDBMS, which is easier to map.

The relational model is here to stay for a very long time.

All the best,

Fidel.

On 12/21/10, Mauro [email protected] wrote:

On 21 December 2010 12:27, Fidel V. [email protected] wrote:

So if rails works as well as grails in Windows your final choice can be
rails?

Rails is always my first choice when I begin a new project. I only
resort to Grails when I face situations that require me to use it.
Such as the ones I have described in my previous post. As for Windows,
I only use it if it is one of the client’s requirements. Otherwise, a
use a Unix-based system.

I develop only web applications for now, I’m using both grails and
rails with jruby because I prefer to deploy under a servlet container
like tomcat.
I love both, I cannot decide which one prefer.

I also don’t have a favourite framework, but I do favour Ruby over
Groovy, and that is what leads me to go for Rails. I think that either
framework can do the job, and in the end it comes down to language
preference, at least for me.

Regards,

Fidel.

On 21 December 2010 12:27, Fidel V. [email protected] wrote:

I often decide on what framework to use based on the target platform,
RDBMS and reporting solution. For instance, if the target platform is
Windows, there is no doubt that I will use Grails, since Rails is not
very Windows friendly. If I don’t need any special RDBMS, advanced
reporting capabilities, or Windows, then I go for Rails. In fact I
only develop with Grails on the Windows platform. Other than that, I
use Rails.

So if rails works as well as grails in Windows your final choice can be
rails?

In the beginning I used Rails only for websites, but now we are using
it even for developing financial and accounting software.

I develop only web applications for now, I’m using both grails and
rails with jruby because I prefer to deploy under a servlet container
like tomcat.
I love both, I cannot decide which one prefer.

I am using Jruby with Rails. Heard that jruby is much faster than ruby
with rails. But I dont know how fast its going…I didn’t experience any
difference.

But I prefer going with Ruby on Rails where deployment is much easier
and we can model our own linking and stuff other than working with
glassfish with war files.

When I run on development with Webrick its fine but when I deploy it on
glassfish it shows me a lot of errors and as it is my first app with
jruby and rails on glassfish, it took me a lot of time to figure out
what exact prblm is which I didnt not experience on my 1st app with ruby
on rails

Make sure you’re using the latest Glassfish gem, 1.0.3. The latest
release fixes a number of issues that have cropped up over the year
since the previous release.

/Nick

On 21 December 2010 17:37, Siva K. [email protected] wrote:

jruby and rails on glassfish, it took me a lot of time to figure out
what exact prblm is which I didnt not experience on my 1st app with ruby
on rails

I’m using tomcat for a long time in a linux debian xen virtual
machine, with grails applications and jruby on rails applications
without any problem.

On 21 December 2010 23:19, Chris E. [email protected] wrote:

Another option if you are using jruby on rails is the trinidad gem -
it leverages the tomcat engine without the trouble of creating a war

But creating a war file isn’t a trouble absolutely.

Another option if you are using jruby on rails is the trinidad gem -
it leverages the tomcat engine without the trouble of creating a war
file.


Chris