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?
We need this patch! Please commit!
ReplyDeleteThanks for this patch!
ReplyDeleteYes, it opens whole new world
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?
ReplyDeleteA different question: are there mail list archives available for the lists -- I couldn't find any.
Thanks
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.
ReplyDeleteThere are mailing list archives available at gmane and at nabble; codehaus is supposed to get their own archives back online soon.
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.
ReplyDelete... 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!
ReplyDelete