Sockets Communication on Server to active process

I have a (java-based) server running on the same machine as JRuby. So
the problem is not simply one of calling a class from Jruby. I need to
have JRuby communicate with the server, in as rapid a manner as
possible.

In considering all the ways this can be done, I think the BEST way may
be just a direct sockets connection. I am wondering:

A. If anyone has a better idea than this - and -
B. Is anyone aware of a Ruby class to do the sockets communicating from
the Ruby side?

Thanks, Janna B

On Jun 11, 2009, at 10:56 AM, Mistress Janna Brossard wrote:

from the Ruby side?
You should look at EventMachine [1]. It can be built as java-native
gem. It provides a nice API for doing asynchronous socket communication.

cr

[1] rubyeventmachine.com

Hi Janna,
have You considered RMI?
But it would include usage of java classes inside of Your ruby code i
think.

Best greetings,
Pawel Wielgus.

2009/6/11 Chuck R. [email protected]:

A. If anyone has a better idea than this - and -
B. Is anyone aware of a Ruby class to do the sockets communicating from the
Ruby side?

You should look at EventMachine [1]. It can be built as java-native gem. It
provides a nice API for doing asynchronous socket communication.
cr
[1] rubyeventmachine.com


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email