Using HTTP-Bind with Openfire

I have an installation of the Openfire server 3.4.4 and a standalone Java client(using Smack API) that connects to it. This works fine and I am able to send/receive messages via port 5222.

ConnectionConfiguration connConfig;

XMPPConnection connection;

connConfig = new ConnectionConfiguration(“localhost”, 5222);

System.out.println(“Starting IM client”);

try {


System.out.println("Connected to " + connection.getHost());

connection.login(username, password);

} catch (XMPPException ex) {

// ex.printStackTrace();

System.out.println("Failed to connect to " + connection.getHost());


The next step is to try use HTTP Binding to get across firewall issues. I suppose one of the following 2 should solve my problem : Openfire server’s built-in HTTP Binding or the JabberHTTPBind. But I am unable to find any useful documentation/sample usage that could help me with this task.

If anybody has been able to achieve this, please help.

Thanks !!

HTTP binding and smack don’t go together at this point. Some people have requested that smack support it.

You could always use JwChat/JSJAC

Thanks for the reply, Op3racional.

JWChat seems like a web client. If there is a jar, I could not locate it. I need a Java library that I can use with my standalone Java client.