From: Robert Dober Date: 2007-08-17T05:32:10+09:00 Subject: Re: Calling JRuby from Ruby. On 8/16/07, Robert Dober wrote: > Hmm are Ruby and JRuby drb compatible? Maybe that would do the trick for you? > Would be great BTW. I just downloaded JRuby 1.0, JRuby as Server or client, Ruby as client or server, does not matter works out of the box, like charm. Chris this really should do the trick for you, no? Something like : Ruby: ------- require 'drb' class MyParams attr_reader :value def initialize value @val = value end end DRb.start_service("druby://localhost:4646", MyParams.new( theObjectYouWant2Pass )); system "jruby... " ### this might be tricky, use either fork or Threading sleep 42 DRb.stop_service ============================================= And in JRuby require 'drb' DRb.start_service incoming = DRbObject.new(nil, "druby://localhost:4646") object = incoming.value DRb.stop_service do whatever you want with value... HTH Robert -- I'm an atheist and that's it. I believe there's nothing we can know except that we should be kind to each other and do what we can for other people. -- Katharine Hepburn