This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i have created a distributed animation in which my model is remote object and it updates the clients via callback mechanism from server, my server is another remote object
my problem is increasing the no of clients causing the ball increase speed fast because of increasing no of calls to move method from increasing clients, i try to tackle by different programming tricks(calling update method only from one object if that is already running from one object then other client cannot run that but that stops the animation) but failed as i m newbie.
can some body tell me how i could overcome this problem or i m totally on wrong track .
how could i implement such application with RMI callbacks like animation loop is running and when some client change some object position the update propagate to other clients.
i need experts suggestions(my general perception is that i m implementing pushing mechanism with RMI an in that scenario i need to implement polling)
if that is the case how can i implement the polling with RMI,
here is my code :
the model remote object, which is iterating client list and calling update method of them,