git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@941679 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-05-06 11:49:25 +00:00
parent a05e84eea3
commit 6e1d530029
2 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@
</p>
<p>
<a href="message/FOO/BAR?timeout=10000&type=queue">Receive a message</a>
<a href="message/FOO/BAR?readTimeout=10000&type=queue">Receive a message</a>
</p>
<h2>Queue browser example</h2>

View File

@ -14,7 +14,7 @@ public class RestTest extends JettyTestSupport {
httpClient.start();
ContentExchange contentExchange = new ContentExchange();
httpClient.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL);
contentExchange.setURL("http://localhost:8080/message/test?timeout=1000&type=queue");
contentExchange.setURL("http://localhost:8080/message/test?readTimeout=1000&type=queue");
httpClient.send(contentExchange);
contentExchange.waitForDone();
assertEquals("test", contentExchange.getResponseContent());
@ -34,7 +34,7 @@ public class RestTest extends JettyTestSupport {
httpClient.start();
ContentExchange contentExchange = new ContentExchange();
httpClient.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL);
contentExchange.setURL("http://localhost:8080/message/test?timeout=1000&type=queue");
contentExchange.setURL("http://localhost:8080/message/test?readTimeout=1000&type=queue");
contentExchange.setRequestHeader("selector", "test=2");
httpClient.send(contentExchange);
contentExchange.waitForDone();