aspose file tools*
The moose likes Distributed Java and the fly likes Instant messaging using RMI and Sockets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Instant messaging using RMI and Sockets" Watch "Instant messaging using RMI and Sockets" New topic
Author

Instant messaging using RMI and Sockets

satsuv
Greenhorn

Joined: Oct 06, 2002
Posts: 1
Hi, I am building a chat server which has the following classes: PresenceServer which is the remote interface, PresenceServerImpl which implements the PresenceServer interface, ClientRegistration which is used to get Client information(name, host, port) and ChatClient which is run by end-users to see who is online and have on-line discussion with other users. The clients exchange messages directly with other clients via java Sockets and use Java RMI to determine the location of other ChatClients. I compiled all the classes without any error. But I get an error when I try to run the PresenceServerImpl class. It gives the following exception:"java.net.ConnectException:Connection refused
java.rmi.ConnectException:Connection refused to host:eos12.csis.gvsu.edu:nested exception is:
java.net.ConnectException:Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)"........
and so on. I cut short the error description as it is too long. I hope someone could soon tell me the reason for the error.
Thanks in advance,
Sue
 
jQuery in Action, 2nd edition
 
subject: Instant messaging using RMI and Sockets