aspose file tools*
The moose likes Distributed Java and the fly likes how to design chat application in RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "how to design chat application in RMI" Watch "how to design chat application in RMI" New topic
Author

how to design chat application in RMI

Saibaskar Parthasarathy
Greenhorn

Joined: Dec 14, 2000
Posts: 5

Should multi threading be used in chat application? The chat application i've created does not use any thread.. The client periodically invokes few methods in the server and retrieves whatever messages it has recieved.. I've tested it with running over 5 clients in parallel, it did not give any problem.. Is that a proper design for chat? If u could kindly suggest me on this too
Thankyou
regards
saibaskar
asad ali
Greenhorn

Joined: Dec 12, 2000
Posts: 20
You should use multi threading for chat as RMI does not guarantee multithreading. Multithreading may be working in your environment, but it may not always work in other environments. Moreover, you should use RMI callback instead of clients connecting to server periodically to get new messages.
Check the RMI spec for multithreading http://java.sun.com/j2se/1.3/docs/guide/rmi/spec/rmi-arch3.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to design chat application in RMI
 
Similar Threads
Why we need Distributed System? thx!
sample code for chat application
running the server
chat application
reating a Java application to send an SMS via my DKU-5