[jboss-user] [JBossCache] - Re: Finding out when a node leaves

mircea.markus do-not-reply at jboss.com
Wed Feb 20 07:04:56 EST 2008


anonymous wrote : Is it possible to determine or get an event sent when a node leaves the cluster?
yes, you should register to the cache as a cache listeners on view changed event. Use treeCache.addTreeCacheListener(TreeCacheListene), and make your listener handle cluster topology change through implementing TreeCacheListene.viewChange(newView) 
anonymous wrote : What I want to do is check in a TreeCache if the node had any work assigned to it and have one of the other nodes take over.
what do you mean by 'had any work assigned to it'? You can use (buddy)replication for having one node's data in some other nodes(s), so that if one node fails/(is removed from the cluster) then the data still exists and can be processed from the backups. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130715#4130715

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130715



More information about the jboss-user mailing list