Instant Messaging in Java
The Jabber Protocols

Iain Shigeoka

2002 | 402 pages | B&W
ISBN: 1930110464

Out of Print $39.95 Softbound print + PDF eBook
$31.99 eBook edition (PDF only)



Instant Messaging has exploded into the online world and is a wildly popular service of the largest Internet Service Providers (ISP) like AOL with AOL Instant Messenger, MSN with Microsoft Messenger, and Yahoo with Yahoo Messenger. Millions of Internet users everyday exchange IM?s and its use beyond messaging is just around the corner. For example, the new Microsoft .NET platform will be using instant messaging technology for data exchange.

This intermediate Java programming book provides Java programmers with the information and tools needed to create your own IM client and server software. You can use the software to create your own IM systems or integrate IM features into your existing software. Imagine allowing your customers to chat directly with technical support or other users from within your application!

This book focuses on the open source Jabber XML-based IM protocols ( to create Java IM software. These open protocols allows your IM software to seamlessly communicate with the large number of other Jabber clients and servers available including commercial Jabber systems like the one that powers Disney's IM.

Readers are assumed to know how to program in Java. No prior knowledge of Jabber or IM is needed.


Iain Shigeoka has a Ph.D. from the University of Kansas where he conducted research in robotics, computer aided design and manufacturing, and factory automation. His current interests include the use of Java in embedded systems and network appliances.


Two sample chapters of Instant Messaging in Java are available in PDF format. You need Adobe's free Acrobat Reader software to view it. You may download Acrobat Reader here.

Download Chapter 1

Download Chapter 4


"Overall, if you have at least a basic understanding of client/server development in Java, and are looking to gain a deeper understanding of instant messaging concepts, as well as the peaks and valleys of developing instant messaging applications through an open-standard, XML-based approach, you should find the Jabber protocols quite interesting, and this book a great resource."
-- Computing Reviews, March 2003

"Where this book rises above others on the subject is in the clarity with which it communicates the concepts behind the Jabber protocols. Great use is made of sequence diagrams and XML to successfully remove the mystery of XML and present Jabber as the common-sense framework that it is."
-- C Vu Journal of the ACCU, February 2003

"...the author's writing style is effortless, making this, like many of the Manning titles, a lucid and well-paced discussion of the Jabber Protocols. The client/server example is well thought out and develops nicely over the course of the book. If you have any interest in developing a real time messaging system, I'd certainly recommend this title..."

" Good coverage of underlying protocol and architecture...3 1/2 stars."
--IBM Developer Works

"This is a good guide to understanding and using the Jabber instant messaging protocols, with an example client and server implementation that speaks to intermediate and expert Java developers alike.
--Pittsburgh, PA Java User Group (PittJUG)


Source code for Instant Messaging in Java is contained in a single ZIP file. Free unzip programs can be found at -- Source code only (312 Kb) -- Required java libraries, no book source code (1.2 MB)