This is a Web application which embeds an XMPP server and allows users to chat using a web browser. It's basically a test I did to explore the integration of XMPP in a web application.
How to use it
Compile Web XMPP using
Deploy the generated web application in a Jetty web server (version 7.x). You can find the WAR in the
targetdirectory, once the compilation is finished.
Start the Jetty application server and go to the context root of the web application. If you deployed it using the
web-xmppcontext go to
Each tab that you will open to that page represent a user connecting to a multi-user chat.
The user name for each page is automatically generated. If you want to connect using a specific user name, you can do it by specifying the
usernameparameter in the query string (e.g., connecting to
All the messages are sent by default to the group chat, thus, received by everyone connected at a given moment. If you want to send a private message to a user you can use the
<-operator: if you write in the text area a message with the form
username@web-xmpp <- msgthis will send a private message to
The server also opens a standard TCP port listening for connection. You can use you favourite XMPP client to connect to the server and participate to the group chat. The multi-user chat room is called