Currently there is really no good way to detect field modification for remote node. But I have scheduled this feature for 2.1 release since it requires some form of RPC propogation of events. See this Jira:
Meanwhile, to get around this, the closest thing is to subscribe the underlying TreeCache event and decode it yourself.
Can you please guide me to get around this.
How should i subscribe for the event ??
Take a look at TreeCacheListener interface and here is a code snippet:
MyTreeCacheListener listener = new MyTreeCacheLister(); cache.addTreeCacheListener(listener); cache.start(); ...
Only caveat is that the notification is on the node level (while fields are stored in the attribute inside the node map). So when a node is modified, you don't know exactly which one except that some attributes inside this node has been modified.
Hope this help.