Hi Azeez, My standalone application is working fine for TreeSet<Long>. I have the same hazelcast dependency in my standalone application also.
Thank you, Sajini. On Mon, Dec 8, 2014 at 2:30 PM, Afkham Azeez <[email protected]> wrote: > Can you first write a simple standalone class with your serializer and see > whether it gets called? Just write a simple class with a main method. > > On Mon, Dec 8, 2014 at 1:59 PM, Sajini De Silva <[email protected]> wrote: > >> 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 >> >> > > > -- > *Afkham Azeez* > Director of Architecture; WSO2, Inc.; http://wso2.com > Member; Apache Software Foundation; http://www.apache.org/ > * <http://www.apache.org/>* > *email: **[email protected]* <[email protected]> > * cell: +94 77 3320919blog: **http://blog.afkham.org* > <http://blog.afkham.org> > *twitter: **http://twitter.com/afkham_azeez* > <http://twitter.com/afkham_azeez> > *linked-in: **http://lk.linkedin.com/in/afkhamazeez > <http://lk.linkedin.com/in/afkhamazeez>* > > *Lean . Enterprise . Middleware* > -- 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
