mercredi 25 février 2015

Hazelcast with spring namespace - init the node when context is loaded

i have hazelcast instance defined as spring name space and a map in it. problem is this spring context is also used for other tools we have besides the server and that hazelcast starts listening on the port and the tool actually never exit. i tried to disable all network join (enabled=false) and i though to enable them programatically only when the server starts. but it does not work hazelcast still starts.


i don't want to give up the spring name space as its very convenient for developers to define new maps(spring caches). also i want as little hazelcast code in there.


any idea how to achieve this ? thanks Shlomi


Aucun commentaire:

Enregistrer un commentaire