Hi again,
I just realized that I totally hijacked this thread to debug my switch
to rails 2.2.2 rather than actually post about the topic.
I’ve been meaning to post something on my blog about my last 6 months
with jruby, but really quick here is my story:
I am a freelance programmer in the San Diego, CA area, and throughout
my last 5 years I have been doing work for local businesses and
universities. One of the universities I worked for started a small
project using RoR (per my suggestion to use RoR as the new ‘fast and
productive’ framework). I was contracted originally to create a
backend process (written in Java) to connect to their legacy system,
while the front end (rails) was to be written by their employees.
We ended up with an environment that worked, but it was complex and
extremely slow and frustrating to our users. Since they were an all
Windows shop, we had Apache + Tomcat (for the backend process) and 10
Mongrel threads (for rails). I don’t know why but we always had issues
with Mongrel going down under the slightest load (5 users hitting the
site at the same time would force us to restart), and for whatever
reason, the native ruby build for Windows threw the most random errors
(sometimes it would say NoMethodError on strftime, even though that
object was a date).
At this time, management was growing extremely impatient with the
application, scolded the employees and I for taking up a ‘buggy early
adopter language with no support’, and contracted another freelance
programmer to port the front end to another platform. Around this same
time jruby 1.1.1 came out and was gaining a lot of steam. I decided to
check it out and when I saw how great it worked on my local Windows
machine, I knew jruby would hold great promise. I came back a week
later with a proposal to use jruby in their environment, removing the
need for Mongrel, native ruby, and allowing us to consolidate into
just Apache + Tomcat.
Fast forward a couple months (during the jruby upgrade they also
wanted a few changes to the business rules), and after the first
production rollout, the response we got was amazing. We heard things
like “my computer at home took 5 minutes to load the search results
page but now it only takes a couple seconds” and other similar
compliments. Management was very pleased as well, no longer thought of
rails as an unproven framework, and in the end they decided to cancel
the port and continue jruby on rails development. In our internal
tests, we were seeing an average of 50 req/s, which was incredible
compared to our prior setup.
Since then, I have also turned several other clients who used rails +
windows to jruby, with similar success and praise. I am extremely
thankful for this project, it has really defined me as a contract
programmer in these last few months, and I am finding a lot of success
that I did not have before. I always hear about these new shiny
upcoming startups who have a ton of IT expertise and freedom to do
amazing things, but I’ve noticed that in my line of work (where IT
departments are small and user tech-knowledge may not be up to par),
you don’t have that kind of flexibility and people expect the
“computer stuff” to just work. I now consider jruby the de-facto
standard for deploying rails apps in a Windows environment, and look
forward to all the future great strides this project makes.
The last thing I want to mention is that some day, I would like to
give back to this community that has given so much to me. I read this
post the other day
http://syntatic.wordpress.com/2008/11/25/the-closet-jrubyists/ and I
have to agree, jruby is the stuff of intranets and “enterprise”
applications, and while you guys may not hear much about our stories,
they do exist and we( myself and the other programmers I’ve met along
the way that I’ve introduced jruby on rails to) are extremely grateful
for this project. You guys have a ton of more programming expertise
than I do but if I can do anything (testing, perhaps something easy)
or even a monetary donation, I would be more than happy to oblige.
Once again, thank you for this project,
Jin L.
On Thu, Nov 27, 2008 at 8:14 AM, Jin L. [email protected] wrote:
So what I did was, I created an new blank rails 2.2.2 application and
from C:/Program Files/Apache Software Foundation/Tomcat
The activerecord gem came in as well as the openssl one, but not the
wrote:
> is from DefaultRackDispatcher.java . How would I go about
IRubyObject[]
> public Arity getArity() {
wrote:
>> public void doFilter(ServletRequest request,
>> if (capture.isError()) {
I noticed
>> static rails pages such ass 500.html and 404.html, those
>> On Tue, Nov 25, 2008 at 12:54 PM, Charles Oliver N.
>>>> Thanks for your reply and information. Sorry, I did not
>>>> at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>> at
insight you can provide. And apologies for the ignorance, I
point, and
>>>>
>>>> I package to war and deploy to my server (Perhaps
>>>> some of the error messages I am seeing:
org.jruby.webapp.RailsFactory.makeObject(RailsFactory.java:138)
>>>> org.jruby.RubyNameError$RubyNameErrorMessage
org.jruby.webapp.util.CustomObjectPool.addObjectInternal(CustomObjectPool.java:111)
>>>>
>>>>
<[email protected]
>>>> miss is a
2.2.2) and we're
>>>> >
>>>>
>>>> --
>>>>
>>>
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email