Hi I am planning to develop a chat client which can connect to gtalk facebook etc...I have decided to use the smack API along with openfire..
But I need little guidance as to how to use it with openfire server..
And does the openfire provide a basic UI like log in box chat window etc...
I need to know how to plug or use smack with openfire
Thanks:)
This is a sample, which will help set the status message on gtalk.
What about Smack API Getting Started?
OpenFire is just the Server. To actually chat, you'll need some Jabber/XMPP Client. You could use Spark for tests.
Configure openfire then refer to documentation provided by Smack. It has easy to understand examples. FYI openfire works fine with gtalk but with facebook it is very slow.
Sample code:-
Here host is the ip/domain name where openfire is configured.
In JSP / Java, import the smack.jar
Place smack.jar in
or yourwebapp/WEB-INF/lib