i stumbled into this problem and here is my solution:
---- Prehistory: ------
i believe the two afore submitted source files above will NOT work with current proxy-Servers (tested with squid 2.6.14 running on Ubuntu 7.10)
I think that this is due to the fact that they use a quite dated authentication method. Connection requests using this method are denied by squid.
I am not sure if the http-connector worked at all, because in AMQ 5.1 i had to add two libraries to get the broker to work when using the http-connector (see below)
------ Possible solution: ------
I wrote a patch which uses
for supplying the credentials to the proxy.
I tested it using:
- AMQ v. 5.1 (stable release)
- two brokers running on sles 9
- squid 2.6.14 running on Ubuntu 7.10
- a network-connector which looked like that:
<networkConnector name="outbound_http" uri="static://(http://xxx.xxx.xxx.xxx:61617?proxyHost=xxx.xxx.xxx.xxx&proxyPort=3128&proxyUser=test&proxyPassword=test)" networkTTL="5"/>
Tests were ok and so far there weren't any problems with the patch.
------ Applying the patch: ------
-> download the patch (the attachment amq-proxy-cred.patch above)
-> download amq-source V.5.1
-> unpack amq
Then patch via:
patch -p1 <amq-proxy-cred.patch
------ Build the sources as usual: ------
mvn clean install -Dmaven.test.skip=true -e
------ Install the broker: ------
-> Installation as usual BUT:
You have to add the following two libraries:
to the brokers classpath. Simply copy them to $AMQ_HOME/lib.