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