making a test work through the proxy

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1042819 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-12-06 22:28:49 +00:00
parent c0c55ae2a5
commit a332127cc2
2 changed files with 6 additions and 2 deletions

View File

@ -52,9 +52,12 @@ public class AMQ2764Test extends TestCase {
public void testBrokerRestart() throws Exception { public void testBrokerRestart() throws Exception {
startBrokerOne();
Thread.sleep(5000);
startBrokerTwo(); startBrokerTwo();
brokerTwo.waitUntilStarted();
startBrokerOne();
brokerOne.waitUntilStarted();
Thread.sleep(5000); Thread.sleep(5000);
ActiveMQConnectionFactory producerConnectionFactory = createBrokerOneConnectionFactory(); ActiveMQConnectionFactory producerConnectionFactory = createBrokerOneConnectionFactory();

View File

@ -30,6 +30,7 @@
</destinations> </destinations>
<networkConnectors> <networkConnectors>
<!--<networkConnector uri="static:(http://localhost:61617?proxyHost=localhost&amp;proxyPort=80)" duplex="true">-->
<networkConnector uri="static:(http://localhost:61617)" duplex="true"> <networkConnector uri="static:(http://localhost:61617)" duplex="true">
<staticallyIncludedDestinations> <staticallyIncludedDestinations>
<queue physicalName="RECONNECT.TEST.QUEUE"/> <queue physicalName="RECONNECT.TEST.QUEUE"/>