Accessing a running Java Process

I have a running java process on the same server as I am running Ruby
(not JRuby, but old C-Ruby) I need to access an object in this running
Java application. I have tried to do this through sockets communication,
but this won;t work. Ruby objects do not lend themselves to being
unravelled on the Java side.

Does anyone have any other ideas for fast, simple communication? I only
need to go one way, from ruby to the runing applicaiton. -Janna B

On Tue, Jun 16, 2009 at 4:05 PM, Mistress Janna
Brossard[email protected] wrote:

I have a running java process on the same server as I am running Ruby (not
JRuby, but old C-Ruby) I need to access an object in this running Java
application. I have tried to do this through sockets communication, but this
won;t work. Ruby objects do not lend themselves to being unravelled on the
Java side.

Does anyone have any other ideas for fast, simple communication? I only need
to go one way, from ruby to the runing applicaiton. -Janna B

You could serialize the Ruby objects into something like YAML or XML
that the Java side could understand, or you could put JRuby on the
Java side and it can handle unmarshalling Ruby objects for you and
possibly building Java objects from the results.

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email