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 :

Hi,
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, "talk.google.com", 443, "/http-bind", pi, "gmail.com");

But this leads to a timeout error:

Timeout reached for the connection to talk.google.com:443.: remote-server-timeout(504) Timeout reached for the connection to talk.google.com:443.
	at org.jivesoftware.smack.BOSHConnection.connect(BOSHConnection.java:224)

Has anybody successfully worked out such a scenario?

Ciao
Gregor