Accessing a running Java Process

View: New views
2 Messages — Rating Filter:   Alert me  

Accessing a running Java Process

by JannaB :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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

Hotmail® has ever-growing storage! Don’t worry about storage limits. Check it out.

Re: Accessing a running Java Process

by Charles Oliver Nutter-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jun 16, 2009 at 4:05 PM, Mistress Janna
Brossard<mistressjanna@...> 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