Forum: JRuby serialization of ruby objects from java

Posted by Fffff Fffff (jasonfs)
on 2009-12-11 12:11
(Received via mailing list)
does anyone know if or when or how this possible?

there exists a java object WebClient that impliments serializable

in jruby I have the following i send the webclient method 
setStatusHandler a jruby  object

include com.gargoylesoftware.htmlunit.StatusHandler
webclient.setStatusHandler(someobject)

include_class 'org.apache.commons.lang.SerializationUtils'
SerializationUtils.serialize(webclient).to_a.pack("C*")

this will cause a java serialzation exception, assumingly because the 
jruby object cant be serialized.

any ideas about how this works?

thanks for infos
jason.




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Posted by Joe Be (mfizz)
on 2012-09-22 22:11
There is a new library that will let you write and read the Ruby 
serialization format in Java.

Opensourced project here: http://code.google.com/p/mfz-ruby-marshal/
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.