if json is too verbose for you, you can use : https://github.com/SierraWireless/m3da-server/blob/master/codec/src/main/java/m3da/codec/impl/BysantEncoderImpl.java It's an implementation of http://wiki.eclipse.org/images/6/6a/M3DABysantSerializer.pdf in java
On Tue, Apr 23, 2013 at 10:29 PM, Leonardo K. Shikida <[email protected]>wrote: > agreed > > you could have problems with java serialization even with different > versions of the same JVM > > json is safer > > [] > > Leo > > > On Tue, Apr 23, 2013 at 1:08 PM, Julien Vermillard <[email protected] > >wrote: > > > Yeah I think you should avoid java serialization. > > You can try Json serialization wth something like jackson. > > it's much safer > > > > Julien > > > > > > On Tue, Apr 23, 2013 at 5:40 PM, Emmanuel Lécharny <[email protected] > > >wrote: > > > > > Le 4/23/13 4:39 PM, Alexander Christian a écrit : > > > > Hmm, no answer yet. So I have to investigate myself :-( > > > > > > > > Here's what I found out so far: > > > > > > > > 1) Simple classes with primitive instance variables are not a problem > > > > for MINA. Works just fine. > > > > 2) Classes with objects don't work. > > > You may have classloader issues. > > > > > > The pb when you transfer Objects over the wire, you have no way to know > > > which version of the JVM you have on the other end (you may have > various > > > versions of dalvik on the remote phones). > > > > > > As the getObject() method heavily depend on the classLoader, it's > likely > > > to fail. > > > > > > > > > -- > > > Regards, > > > Cordialement, > > > Emmanuel Lécharny > > > www.iktek.com > > > > > > > > >
