[jdev] Serving the jabber applet through a proxy

Trejkaz Xaoza trejkaz at xaoza.net
Fri Jul 9 04:51:20 CDT 2004

On Fri, 9 Jul 2004 18:55, Matthias Wimmer wrote:
> Hi Trejkaz!
> Trejkaz Xaoza schrieb am 2004-07-09 08:45:30:
> > But what you need to be sure the applet's connection will work everywhere
> > is to install a Jabber applet with the HTTP polling feature.  I've
> > confirmed that this works although the implementation of HTTP polling
> > written for the jabber applet is a bit inefficient.
> I made the oppsite experience. Some time ago I implemented the old HTTP
> polling protocol in Jabberapplet and it did not help very much users. My
> intention was that the HTTP requests a Java applet generates would be
> send using the configured proxy server.
> My experience was that this was not the case: the HTTP requests were
> still sent out directly without using the HTTP proxy ... in fact the
> HTTP proxy was not even usable as its host was blocked by the Java sand
> box.

I didn't seem to have that problem when I got it working.  Are you sure you're 
talking about the configured proxy server, and not the _browser's_ configured 
proxy server?  I was using the amessage polling code and it worked pretty 
well at the time... except the inefficiency of polling is horrendous so I had 
to give it up.  Unfortunately though, we still have users connecting through 
the polling server so we can't shut it down without screwing someone over.

Actually, I didn't even make the connection when I posted between being behind 
a firewall and using an HTTP proxy.  I'm behind a firewall at home, and have 
been behind one for my last three jobs, but all of these places used 
transparent proxies.  I actually had to intentionally screw with my settings 
to simulate the unusual case of a manually-configured HTTP proxy, back when I 
tested that polling feature. :-)

> I guess the best choise to make Jabber available without installing a
> client and to be able to pass though proxies is to use a pure HTML
> client.

... or just to use a polling client like Psi, instead of an applet.  This is a 
far better choice as it doesn't die when you close the web browser, and works 
much more reliably in general. :-)


'Every sufficiently advanced technology is indistinguishable from magic' - 
Arthur C Clarke
'Every sufficiently advanced magic is indistinguishable from technology' - Tom 

             Email: Trejkaz Xaoza <trejkaz at xaoza.net>
          Web site: http://xaoza.net/trejkaz/
         Jabber ID: trejkaz at jabber.xaoza.net
   GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F  A62C B8C7 BC8B 037E EA73

More information about the JDev mailing list