Hello,
I've just implemented a trivial TreeCacheListener
implementation.
It extends AbstractTreeCacheListener,
and only implements two methods: nodeRemoved(Fqn) and nodeRemove(Fqn, boolean,
boolean).
When I create the listener, I register
it with the treecache as shown below:
TreeCache treeCache = new TreeCache();
PropertyConfigurator config = new PropertyConfigurator();
config.configure(treeCache, PROPERTIES_PATH);
MyCacheListener listener = new MyCacheListener();
treeCache.addTreeCacheListener(listener);
treeCache.start();
In the cache configuration, I use INVALIDATION_SYNC
as CacheMode.
When I modify an object in one node
of my cluster, the call is issued as expected. The nodeRemoved(Fqn) method
is called. My problem is that I always recieve a null Fqn parameter
in the nodeRemoved(Fqn) method.
Is there something that I should do,
besides register the listener, to recieve a correct Fqn? Or is it expected
that, in some situations, a null Fqn should be recieved?
Thanks for your help,
Sébastien
************************ DISCLAIMER ************************
This message is intended only for use by the person
to whom it is addressed. It may contain information
that is privileged and confidential. Its content does
not constitute a formal commitment by Lombard
Odier Darier Hentsch Group and any of its affiliates.
If you are not the intended recipient of this message,
kindly notify the sender immediately and destroy this
message. Thank You.
*****************************************************************