We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

Java RMI chat Program

avijayak
avijayak asked
on
Medium Priority
4,878 Views
Last Modified: 2013-12-29
I want to write a Java RMI chat program.Can you please provide me a solution to it.

Aneesh.
Comment
Watch Question

Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
Principal Solutions Architect
CERTIFIED EXPERT
Top Expert 2006
Commented:

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Top Expert 2006

Commented:
guys i have a little question related to this topic
i have already download the example that objects provided
http://www.webmonkey.com/webmonkey/97/28/index2a.html?tw=programming
i can not run the server when i try "java chat.ChatServerImpl"
it says
java.rmi.ConnectException: Connection refused to host: xxx.xxx.xxx.xxx // my ip
anybody knows how to run the chat server
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
For some reason, the server is trying to connect to something on your IP - not sure why :) maybe you can start the rmiregistry and see if that helps.
Mayank SPrincipal Technologist
CERTIFIED EXPERT

Commented:
nice link objects...

here is what some of the problems RMI one might have:

http://patriot.net/~tvalesky/easyrmi.html (see Problems that you may run into)

No Points Please.. only a comment..

-Muj ;-D

Author

Commented:
I went thru all ur programs.they contain awt too.i dunnot want awt. a simple command prompt chat system. where when a second user logs in , his comments are also logged by the server one after the other.

Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
then just don't use the gui classes. Just use the actual chat classes in your console app.

Author

Commented:
Dear shivaspk,
                    The code at  http://www.cs.umd.edu/class/spring2001/cmsc433-0101/ is working properly.But I have to make changes into it.I want to end the chat session of a user, when the user types in the Exclamation mark i.e. "!" .What changes do I make in the code to get this working?Reply back as soon as possible.

Aneesh.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.