From: Richard Cole Date: 2005-04-14T11:42:46+09:00 Subject: Re: Ruby Java Bridge: Are there any? Richard Cole wrote: > Takaaki Tateishi wrote: > >> Richard Cole wrote: >> >>> Hi. Quick question. I've install a database like thingy (kowari) >>> written in Java that I want to communicate with from a Ruby: send >>> queries get answers. What's a good way to communicate from a ruby >>> process to Java process, SOAP? RMI? Corba? A socket? Are there any >>> wrappers that let me go from ruby straight to the JVM presumably via >>> the java native call interface? >> >> >> >> Try rjb, >> http://arton.no-ip.info/data/rjb-0.1.9.zip >> http://arton.no-ip.info/collabo/backyard/?RubyJavaBridge > > > Wow, cool library. That was just what I was looking for :). Can you > think of any reason why I'm getting a SIGHUP? Here's my short ruby > program, maybe there's something obvious. Don't know where SIGHUP is coming from, but putting a signal handler in at the top of the ruby script allowed me to ignore SIGHUP, i.e: trap('SIGHUP') { # puts "SIGHUP Raised!" } and now the program is producing the correct output, i.e. correctly iterating through the result set. regards, Richard.