Google Product Forums

BOSH to Google Talk

gregor.karl Feb 29, 2012 11:41 PM
Posted in group: Google Chat

Categories: I'm a developer. : Text Chat : Downloadable Clients :

I want to access Google Talk from a Java EE Server behind a company firewall using the XMPP to HTTP binding (BOSH). Does anybody know the appropriate connection data? I use smack, smack-bosh and kenai-jbosh as client libs. My configuration looks like:

ProxyInfo pi = new ProxyInfo(ProxyType.HTTP, ... , 8080, null, null);

BOSHConfiguration cc = new BOSHConfiguration(true, "", 443, "/http-bind", pi, "");

But this leads to a timeout error:

Timeout reached for the connection to remote-server-timeout(504) Timeout reached for the connection to
	at org.jivesoftware.smack.BOSHConnection.connect(

Has anybody successfully worked out such a scenario?