Fix REST examples

This commit is contained in:
Justin Bertram 2017-08-03 14:44:43 -05:00 committed by Clebert Suconic
parent d3f68a1a3a
commit e3aa71a1a0
7 changed files with 10 additions and 10 deletions

View File

@ -27,10 +27,10 @@ under the License.
<acceptors> <acceptors>
<acceptor name="in-vm">vm://0</acceptor> <acceptor name="in-vm">vm://0</acceptor>
</acceptors> </acceptors>
<addresses> <addresses>
<address name="orders"> <address name="orders">
<anycast> <anycast>
<queue name="jms.queue.orders"/> <queue name="orders"/>
</anycast> </anycast>
</address> </address>
</addresses> </addresses>

View File

@ -27,7 +27,7 @@ under the License.
<acceptors> <acceptors>
<acceptor name="in-vm">vm://0</acceptor> <acceptor name="in-vm">vm://0</acceptor>
</acceptors> </acceptors>
<addresses> <addresses>
<address name="chat"> <address name="chat">
<multicast/> <multicast/>
</address> </address>

View File

@ -148,7 +148,7 @@ under the License.
} }
} }
initializeSenderAndTop('jms.topic.chat'); initializeSenderAndTop('chat');
setTimeout("receiveMessage()", 800); setTimeout("receiveMessage()", 800);

View File

@ -17,7 +17,7 @@
import httplib, urlparse import httplib, urlparse
conn = httplib.HTTPConnection("localhost:8080") conn = httplib.HTTPConnection("localhost:8080")
conn.request("HEAD", "/queues/jms.queue.orders") conn.request("HEAD", "/queues/orders")
res = conn.getresponse() res = conn.getresponse()
createLink = res.getheader("msg-create") createLink = res.getheader("msg-create")
print createLink print createLink

View File

@ -17,7 +17,7 @@
import httplib, urlparse import httplib, urlparse
conn = httplib.HTTPConnection("localhost:8080") conn = httplib.HTTPConnection("localhost:8080")
conn.request("HEAD", "/queues/jms.queue.orders") conn.request("HEAD", "/queues/orders")
res = conn.getresponse() res = conn.getresponse()
consumersLink = res.getheader("msg-pull-consumers") consumersLink = res.getheader("msg-pull-consumers")
consumersParsed = urlparse.urlparse(consumersLink) consumersParsed = urlparse.urlparse(consumersLink)

View File

@ -28,10 +28,10 @@ under the License.
<acceptor name="in-vm">vm://0</acceptor> <acceptor name="in-vm">vm://0</acceptor>
<acceptor name="netty">tcp://localhost:61616</acceptor> <acceptor name="netty">tcp://localhost:61616</acceptor>
</acceptors> </acceptors>
<addresses> <addresses>
<address name="orders"> <address name="orders">
<anycast> <anycast>
<queue name="jms.queue.orders"/> <queue name="orders"/>
</anycast> </anycast>
</address> </address>
</addresses> </addresses>

View File

@ -31,12 +31,12 @@ under the License.
<addresses> <addresses>
<address name="shipping"> <address name="shipping">
<anycast> <anycast>
<queue name="jms.queue.shipping"/> <queue name="shipping"/>
</anycast> </anycast>
</address> </address>
<address name="orders"> <address name="orders">
<anycast> <anycast>
<queue name="jms.queue.orders"/> <queue name="orders"/>
</anycast> </anycast>
</address> </address>
</addresses> </addresses>