On Sun, Jun 28, 2009 at 9:17 AM, Li Xiao<[email protected]> wrote: > > Hi Nando, > > One JRuby YAML problem I got is it couldn't load Java objects from a > jruby yaml dump. > In this case, we couldn't use Marshal instead, because JRuby can't use > Marshal dump Java objects too. > > (I also got same problem with yours, and changed to use Marshal dump/ > load to fix it, when I created jruote) > > Currently, my solution would be serialize Java object as byte array > and then convert it to string, and then put the string into attributes > of workitem, so that I could load it back later in Java. > Yes, JRuby also has problem with byte array, because it's a Java array > object, I didn't get right way to simply convert it into ruby array. > And the byte would be handle as java.lang.Long in jruby, so I think > it's better to convert into string.
Hi Li and Nando, if you need any help on this one, please tell me. Best regards, -- John Mettraux - http://jmettraux.wordpress.com --~--~---------~--~----~------------~-------~--~----~ you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
