Kryo jars lib folder

38 views
Skip to first unread message

forthy

unread,
Dec 28, 2012, 7:25:21 AM12/28/12
to memcached-se...@googlegroups.com
Dear all,
   i would to use a custom serialization strategy like kryo.
I have various web applications on my tomcat so it's not a easy step to add in each application 
 the jars I need for the kryo serializer  ( msm-kryo-serializerkryo-serializers-0.10kryominlogreflectasmasm-3.2) .
Can i add all the jars in my tomcat installation lib?

Thomas Andraschko

unread,
Dec 28, 2012, 8:06:55 AM12/28/12
to memcached-se...@googlegroups.com
Hey,

yep, this should work of course.

2012/12/28 forthy <fabrizio...@hotmail.com>

Martin Grotzke

unread,
Dec 28, 2012, 11:21:46 AM12/28/12
to memcached-se...@googlegroups.com
Hi,

thats true as long as all classes that are serialized/deserialized by
kryo were loaded by the same (or a parent) classloader. I.e. any class
that will be serialized/deserialized was also loaded from tomcat/lib or
from the jdk.

If a class that was loaded from a jar residing in some WEB-INF/lib shall
be deserialized by kryo (loaded from tomcat/lib) this should fail. Note:
IIRC you'll see the error only during deserialization, not during
serialization as classloading/instantiation is the issue (I'm not really
sure, but that's also a case that could be detected by the
DummyMemcachedBackupSessionManager).

Cheers,
Martin


On 12/28/2012 02:06 PM, Thomas Andraschko wrote:
> Hey,
>
> yep, this should work of course.
>
> 2012/12/28 forthy <fabrizio...@hotmail.com
> <mailto:fabrizio...@hotmail.com>>
>
> Dear all,
> i would to use a custom serialization strategy like kryo.
> I have various web applications on my tomcat so it's not a easy step
> to add in each application
> the jars I need for the kryo serializer ( msm-kryo-serializer
> <http://repo1.maven.org/maven2/de/javakaffee/msm/msm-kryo-serializer/>, kryo-serializers-0.10
> <http://repo1.maven.org/maven2/de/javakaffee/kryo-serializers/0.10/>, kryo
> <http://repo1.maven.org/maven2/com/googlecode/kryo/>, minlog
> <http://repo1.maven.org/maven2/com/googlecode/minlog/>, reflectasm
> <http://repo1.maven.org/maven2/com/googlecode/reflectasm/>, asm-3.2
> <http://repo1.maven.org/maven2/asm/asm/3.2/>) .
> Can i add all the jars in my tomcat installation lib?
>
>

--
inoio gmbh - http://inoio.de
Breitenfelder Str. 13c, 20251 Hamburg
Amtsgericht Hamburg, HRB 123031
Geschäftsführer: Dennis Brakhane, Martin Grotzke, Ole Langbehn

signature.asc

forthy

unread,
Jan 4, 2013, 7:08:32 AM1/4/13
to memcached-se...@googlegroups.com
I confirm that kryo framework is working on my test environment.
Thak you so much!
Reply all
Reply to author
Forward
0 new messages