Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 9672 invoked from network); 7 May 2008 17:13:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 17:13:36 -0000 Received: (qmail 57851 invoked by uid 500); 7 May 2008 17:13:36 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 57830 invoked by uid 500); 7 May 2008 17:13:36 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 57819 invoked by uid 99); 7 May 2008 17:13:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 10:13:36 -0700 X-ASF-Spam-Status: No, hits=4.1 required=10.0 tests=DNS_FROM_OPENWHOIS,NORMAL_HTTP_TO_IP,SPF_HELO_PASS,SPF_PASS,WEIRD_PORT,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 17:12:42 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JtnCR-0005ZF-HK for users@activemq.apache.org; Wed, 07 May 2008 10:13:03 -0700 Message-ID: <17109982.post@talk.nabble.com> Date: Wed, 7 May 2008 10:13:03 -0700 (PDT) From: j0llyr0g3r To: users@activemq.apache.org Subject: Re: How do i configure the http transport connector to use a proxy? In-Reply-To: <16964261.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: timo.roessner@wincor-nixdorf.com References: <16964261.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi folks, i finally got it working like this: Broker 1: Broker 2: Squid: -> without authentication Consumer: ant consumer -Durl=tcp://broker-1:61616 Producer: ant producer -Durl=tcp://broker-2:61616 If i stop the squid-proxy -> no messages are delivered anymore If i restart the squid-proxy -> messages are delivered So, i guess it works...... One last issue: I can not pass parameters in the URI like: ?proxyHost=myProxy&proxyPort=3128 The broker gives me the following error on startup: ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 56 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The reference to entity "proxyPort" must end with the ';' delimiter. java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 56 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The reference to entity "proxyPort" must end with the ';' delimiter. at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:99) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51) at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:104) at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:51) at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.activemq.console.Main.runTaskClass(Main.java:222) at org.apache.activemq.console.Main.main(Main.java:106) Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 56 in XML document from class path resource [activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The reference to entity "proxyPort" must end with the ';' delimiter. Instead i have to use: ?proxyHost=myProxy&*amp;proxyPort=3128 (Minus the "*" because the mailing-list won't show this part of the string.) According to the Jira-entry here: -> https://issues.apache.org/activemq/browse/AMQ-1099 this should not be necessary. Any ideas? -- View this message in context: http://www.nabble.com/How-do-i-configure-the-http-transport-connector-to-use-a-proxy--tp16964261s2354p17109982.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.