Hi,

I'm using custom serialization in hazelcast for a tree map. I set
serialization properties to hazelcast instance in the code like following.

 this.hazelcastInstance = hazelcastInstance;
        SerializerConfig sc = new SerializerConfig();
        sc.setImplementation(new
                MessageIDTreeSetStreamSerializer()).setTypeClass(new
TreeSet<Long>().getClass());

hazelcastInstance.getConfig().getSerializationConfig().addSerializerConfig(sc);

But when a treeset is put in to a hazelcast map the write method in my
custom serilizer is not getting called.

Does anybody has any idea about this? Is it possible to add custom
serializers to Treesets and Hashmaps?

Thank you,
Sajini

-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: [email protected]
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva

Phone: +94 712797729
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to