[hazelcast-3] add custom serializer at runtime

142 views
Skip to first unread message

lb

unread,
Jul 11, 2013, 8:43:59 AM7/11/13
to haze...@googlegroups.com
Hi,
I would like to know if the new Hazelcast 3 serialization engine can be enriched at run-time - after an instance has already been created, something like:
myHazelcastInstance.getConfig().getSerializationConfig().addTypeSerializer(
    new TypeSerializerConfig().
    setTypeClass(MyType.class).
    setImplementation(new CustomerSerializer()));

Cheers,
Luca

Mehmet Dogan

unread,
Jul 11, 2013, 8:48:08 AM7/11/13
to haze...@googlegroups.com

What's the requirement behind this feature request?

@mmdogan

~Sent from mobile

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at http://groups.google.com/group/hazelcast.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

lb

unread,
Jul 11, 2013, 9:16:27 AM7/11/13
to haze...@googlegroups.com
I'm currently working on some projects based on OSGi and what I was thinking about is to dynamically register serializers when bundles are installed.

My OSGi based application/framework uses Hazelcast as caching and communication framework and I would like to decouple the core services from the features ones not only in term of class dependencies but also in term of availability as in OSGi services can be added/removed at run-time.

So I imagine something like:

- a core Hazelcast service that:
  - creates the Hazelcast instance and register it as OSGi service
  - listen for service registration/de-registration and if a service is of type ISerializer (e.g.) , add a new type serializer to Hazelcast
- some features (bundles) that implement and export an ISerializer service if a custom serialization is required

Sounds reasonable?





--
You received this message because you are subscribed to a topic in the Google Groups "Hazelcast" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hazelcast/3_ZGy1gaJlA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hazelcast+...@googlegroups.com.

lb

unread,
Jul 16, 2013, 5:46:50 AM7/16/13
to haze...@googlegroups.com
Hi - do you want me to open an issue on github?

Peter Veentjer

unread,
Jul 16, 2013, 6:02:24 AM7/16/13
to haze...@googlegroups.com
You can make make the issue here:

https://github.com/hazelcast/hazelcast/issues

This way we can keep track of the issue and we won't forget it. 

Please copy as much relevant info as possible, else you have the risk that the issue will not get the attention/importance it deserves. 

lb

unread,
Jul 16, 2013, 6:28:34 AM7/16/13
to haze...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages