File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Instant Messaging In Java" Watch "Instant Messaging In Java" New topic
Author

Instant Messaging In Java

Paul Smith
Greenhorn

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.
Bye
Mark
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Instant Messaging In Java