Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Instant Messaging in Java Made Easy: The Smack API

Instant messaging (IM) needs little introduction.

Tutorial Details:

Instant messaging (IM) needs little introduction. Just in case you've been stuck on a desert island for the last ten years, IM is a well-known and widely used technology which allows people (or software) to exchange messages over a network in real time. Using a loosely coupled client-server architecture, IM clients send their messages over the internet to a central server, which in turn forwards them to the appropriate recipient or recipients. Instant messaging services are regularly used by hundreds of millions of users worldwide.

There are many, many IM clients around. Companies such as AOL, Microsoft, and Yahoo provide IM services based on proprietary messaging protocols, and also provide popular client software using these protocols. Many third-party clients also work with these protocols. However, these protocols remain proprietary and closed, which tends to make them difficult to work with for a developer.

Jabbering Online: The Basics of Jabber

Jabber is based on a simple XML protocol, known as the XMMP protocol. Transmitted in XML form, Jabber messages are lightweight, human-readable, and easy to understand, which is a boon for IM application developers. There are several different types of messages available, including chat and groupchat messages used for typical IM communications, but also the email-like normal messages, as well as the ticker-tape-style headline messages.

Let's start with an example. Here is a typical XMMP message:



thread1234
Hi Tom!


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Instant Messaging in Java Made Easy: The Smack API

View Tutorial:
Instant Messaging in Java Made Easy: The Smack API

Related Tutorials:

Messaging makes its move, Part 2 - JavaWorld - March 1999
Messaging makes its move, Part 2 - JavaWorld - March 1999
 
Java Tip 71: Use dynamic messaging in Java - JavaWorld - April 1999
Java Tip 71: Use dynamic messaging in Java - JavaWorld - April 1999
 
Messaging helps move Java into the enterprise - JavaWorld January 1999
Messaging helps move Java into the enterprise - JavaWorld January 1999
 
JMS: An infrastructure for XML-based business-to-business communication - JavaWorld February 2000
JMS: An infrastructure for XML-based business-to-business communication - JavaWorld February 2000
 
Which JSP book serves up the best lesson?
Which JSP bookAs for Web servers/databases, just mentioning a server in the book is not sufficient to be listed here.
 
Servlet 2.3: New features exposed - JavaWorld January 2001
Servlet 2.3: New features exposed - JavaWorld January 2001
 
Deliver cellular messages with SMS - JavaWorld March 2001
Deliver cellular messages with SMS - JavaWorld March 2001
 
Introduction to the Java Mail API
Introduction to the Java Mail API
 
XML messaging, Part 3
XML messaging, Part 3
 
Jabber away with instant messaging
Jabber away with instant messaging
 
J2SE 1.4 breathes new life into the CORBA community, Part 1
J2SE 1.4 breathes new life into the CORBA community, Part 1
 
Manage users with JMS
Manage users with JMS
 
The Java Web Services Tutorial
This tutorial is a beginner\'s guide to developing Web services and Web applications using the Java Web Services Developer Pack (Java WSDP).
 
JMS Messaging Online Resource
JMS Messaging Online Resource JMS Tutorials JMS provides a way for Java programs to access an enterprise messaging system, also known as message oriented middleware (MOM). Check out the below tutorials.
 
g4j - GMail API for Java
GMailer API for Java (g4j) is set of API that allows Java programmer to communicate to GMail. With G4J programmers can made Java based application that based on huge storage of GMail.
 
Distributed Enterprise Messaging with MantaRay
A very important communication standard in Java is Java Messaging Service (JMS). JMS is a set of Java interfaces and associated semantics that define a way for a Java-based client to access a messaging system. JMS provides a rich, yet simple, set of messa
 
The JavaTM Web Services Tutorial
A beginner's guide to developing Web services and Web applications on the Java Web Services Developer Pack
 
Power Messaging, Maps and more...
BuddySpace is an instant messenger with four novel twists: (1) it allows optional maps for geographical & office-plan visualizations in addition to standard 'buddy lists'; (2) it is built on open source Jabber, which makes it interoperable with ICQ, MSN,
 
Getting Started with Java Message Service (JMS)
The Java Message Service (JMS) is designed to allow Java applications to use enterprise messaging systems. It makes it easy to develop enterprise applications that asynchronously send and receive business data and events. Learn how to implement it for you
 
J2ME Wireless Toolkit 2.2
Now available.This version of the toolkit is fully compatible with the Java Technology for the Wireless Industry (JTWI) specification (JSR 185).
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.