Hi,
I was trying endpoint-hazelcast. The distributed map from Hazelcast doesn't
seem to work out of the box for our SCA domain registry which requires the
following:
1) Each member can contribute entries to the map and they can be seen by all
members in the group (
2) The entries added by a member (the Hazelcast instance where getMap () is
called) are owned by the member
3) When the member leaves the group, all entries owned by the member should
be removed.
Hazelcast can support 1), but we need to do some work to get 2 & 3 working.
As far as I see the from test case [1], Hazelcast IMap.localKeySet() is not
the ones that are added locally by the owning member.
I could not find a built-in eviction policy from Hazelcast that suits this
need. And it seems that Hazelcast doesn't give us the owner (the member that
put the
entry) of a key.
[1]
https://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java
Thanks,
Raymond
---
Raymond Feng
Apache Tuscany PMC Member: http://tuscany.apache.org
Co-author of Tuscany In Action (A book on Tuscany SCA):
http://tuscanyinaction.com/
www.enjoyjava.com