File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes Implementing multiuser interactive animation with RMI callbacks. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Implementing multiuser interactive animation with RMI callbacks." Watch "Implementing multiuser interactive animation with RMI callbacks." New topic
Author

Implementing multiuser interactive animation with RMI callbacks.

Jibby Lala
Ranch Hand

Joined: Aug 29, 2010
Posts: 35
Hi!
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 client:

the model remote object, which is iterating client list and calling update method of them,


thanks a lot for your time,
jibby
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Implementing multiuser interactive animation with RMI callbacks.
 
Similar Threads
Help manipulating Swing default ButtonModel remotely. (NPE on the second client)
Ball Physics implementation.
Serialized object or Remote object ?
Drawing Problems with JPanel /Jframe need optimize solution.
Problem with pass-by-reference ?