Deserialize java object

Hi,
I am using ruby to check some memcache keys.
the memcache values are serialized java objects.

Is it possible to read these objects in ruby and output their values?

thanks,
ad.

On Wed, Feb 24, 2010 at 12:48 PM, Ad Ad [email protected] wrote:

I am using ruby to check some memcache keys.
the memcache values are serialized java objects.

Is it possible to read these objects in ruby and output their values?

Haven’t tried it but a google search on “deserialize java object with
ruby”
led to this via the second link:
http://raa.ruby-lang.org/project/javaobs/

Yes, it’s old and apparently abandoned, but might give you a start :slight_smile:

Remember, GIYF

On Feb 24, 2:48 pm, Ad Ad [email protected] wrote:

Hi,
I am using ruby to check some memcache keys.
the memcache values are serialized java objects.

Is it possible to read these objects in ruby and output their values?

thanks,
ad.

Posted viahttp://www.ruby-forum.com/.

I guess jruby would be one option. You should be able to use the Java
Serialization classes directly.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs