Hi friends,I am new to Jgroups. Think a scenario such that I have two members of a cluster. My aim is to use cluster wide atomic counter. When i run first member, i create a counter and every two seconds i increase this counter by 1. 10 seconds later when i run the second member of the same cluster and using same counter i dont see the counter result of first member, it starts with second one initial value. What i am missing ? I use the same counter name while creating/getting counter ?
You're probably not forming a cluster, if you register for view changes and implement viewAccepted(View view) and print the view, you'll probably seeing only 1 member...
Thanks Bela for quick response, checked my source code, yes you are right, second member cannot connect to cluster because of my protocol stack. Protocol stack as properties in source code is like this:
I solved problem using correct udp.xml or protocol stack.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.