Fix REST examples
This commit is contained in:
parent
d3f68a1a3a
commit
e3aa71a1a0
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -148,7 +148,7 @@ under the License.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
initializeSenderAndTop('jms.topic.chat');
|
initializeSenderAndTop('chat');
|
||||||
|
|
||||||
|
|
||||||
setTimeout("receiveMessage()", 800);
|
setTimeout("receiveMessage()", 800);
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue