my dog learned polymorphism
The moose likes Java in General and the fly likes Instant Messaging In Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Instant Messaging In Java" Watch "Instant Messaging In Java" New topic

Instant Messaging In Java

Paul Smith

Joined: Jan 27, 2005
Posts: 8
Hello People,

Does any of you know how to create an Instant Messenger in java. I'm not after the whole code on a 'plate', I'm after a guide/direction/where-to-look etc...

Thanks in advance
Elihu Smails
Ranch Hand

Joined: Jan 12, 2005
Posts: 37
Google is where I would start. also look at protocols. Jabber might be a good one...
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
If I had to write one from scratch for an assignment I'd start with Sockets. Sun's All About Sockets is a great starting point.

One hint: The program on your desktop is likely to act as a client and a server at the same time. And the program you'd probably call the server will act as a server and client at the same time. Don't worry if that hurts your brain at first. See how clients and servers work and see if it makes sense.

Feel free to get some ideas into code and post them for comments. Have fun!

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Mark Mescher
Ranch Hand

Joined: Oct 25, 2004
Posts: 34
You should think of the logical Network you want to use. If you want a serverbased application perhaps you should use a own implementation using sockets. An alternate way would be the use of Jabber.
If you want a real P2P-solution you should try JXTA, the SUN P2P-Framework.
I agree. Here's the link:
subject: Instant Messaging In Java
It's not a secret anymore!