Fix REST examples
This commit is contained in:
parent
d3f68a1a3a
commit
e3aa71a1a0
|
@ -27,10 +27,10 @@ under the License.
|
|||
<acceptors>
|
||||
<acceptor name="in-vm">vm://0</acceptor>
|
||||
</acceptors>
|
||||
<addresses>
|
||||
<addresses>
|
||||
<address name="orders">
|
||||
<anycast>
|
||||
<queue name="jms.queue.orders"/>
|
||||
<queue name="orders"/>
|
||||
</anycast>
|
||||
</address>
|
||||
</addresses>
|
||||
|
|
|
@ -27,7 +27,7 @@ under the License.
|
|||
<acceptors>
|
||||
<acceptor name="in-vm">vm://0</acceptor>
|
||||
</acceptors>
|
||||
<addresses>
|
||||
<addresses>
|
||||
<address name="chat">
|
||||
<multicast/>
|
||||
</address>
|
||||
|
|
|
@ -148,7 +148,7 @@ under the License.
|
|||
}
|
||||
}
|
||||
|
||||
initializeSenderAndTop('jms.topic.chat');
|
||||
initializeSenderAndTop('chat');
|
||||
|
||||
|
||||
setTimeout("receiveMessage()", 800);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
import httplib, urlparse
|
||||
|
||||
conn = httplib.HTTPConnection("localhost:8080")
|
||||
conn.request("HEAD", "/queues/jms.queue.orders")
|
||||
conn.request("HEAD", "/queues/orders")
|
||||
res = conn.getresponse()
|
||||
createLink = res.getheader("msg-create")
|
||||
print createLink
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
import httplib, urlparse
|
||||
|
||||
conn = httplib.HTTPConnection("localhost:8080")
|
||||
conn.request("HEAD", "/queues/jms.queue.orders")
|
||||
conn.request("HEAD", "/queues/orders")
|
||||
res = conn.getresponse()
|
||||
consumersLink = res.getheader("msg-pull-consumers")
|
||||
consumersParsed = urlparse.urlparse(consumersLink)
|
||||
|
|
|
@ -28,10 +28,10 @@ under the License.
|
|||
<acceptor name="in-vm">vm://0</acceptor>
|
||||
<acceptor name="netty">tcp://localhost:61616</acceptor>
|
||||
</acceptors>
|
||||
<addresses>
|
||||
<addresses>
|
||||
<address name="orders">
|
||||
<anycast>
|
||||
<queue name="jms.queue.orders"/>
|
||||
<queue name="orders"/>
|
||||
</anycast>
|
||||
</address>
|
||||
</addresses>
|
||||
|
|
|
@ -31,12 +31,12 @@ under the License.
|
|||
<addresses>
|
||||
<address name="shipping">
|
||||
<anycast>
|
||||
<queue name="jms.queue.shipping"/>
|
||||
<queue name="shipping"/>
|
||||
</anycast>
|
||||
</address>
|
||||
<address name="orders">
|
||||
<anycast>
|
||||
<queue name="jms.queue.orders"/>
|
||||
<queue name="orders"/>
|
||||
</anycast>
|
||||
</address>
|
||||
</addresses>
|
||||
|
|
Loading…
Reference in New Issue