Monday, August 07, 2006

Distributed Ruby (DRb) "Working Well"

A new member of the JRuby community, Blane Dabney, submitted a patch for JRuby socket IO to resolve a DRb issue he'd been having. Our original implementation of a "write" method was not properly handling line terminators, and would end up blocking on write calls with nothing coming out the other end. After some investigation by us both, Blane managed to put together a simple, working patch that solves the issue.

According to him, DRb from a Ruby client to a JRuby backend now "seems to be working well." I'm letting the patch stew for a bit, but it will likely be committed to trunk in the next couple days.

The ability to use DRb from Ruby to JRuby opens up a whole new world of integration with Java services. I guess it's time one of us got busy on a DRb-to-EJB gateway, don't you think?


Anonymous said...

We need this patch! Please commit!

Anonymous said...

Thanks for this patch!
Yes, it opens whole new world

Stephen Bannasch said...

I would love to use this capability! I have signed up to jruby-user. Should I also get jruby-dev to get any announcement of when this capability will be included and perhaps any examples of how to use it?

A different question: are there mail list archives available for the lists -- I couldn't find any.


Charles Oliver Nutter said...

Feel free to join both the dev and user lists; dev is usually a lot busier these days because there's so much going on.

There are mailing list archives available at gmane and at nabble; codehaus is supposed to get their own archives back online soon.

Anonymous said...

At work we just identified an opportunity (need!) to write a JMS bridge in JRuby so that our native Ruby apps can participate in the J2EE infrastructure. DRb would make it a snap for the native and Java Ruby runtimes to communicate with each other but until this patch goes through I'm stuck writing a quick 'n dirty TCP server to receive messages and publish them to JMS.

Anonymous said...

... and keep up the good work! JRuby has been one of my favorite projects for many years and I am very excited to see so much recent progress and backing by Sun!