Hi I tried some REST examples from the svn repo but it doesn't work as expected.
For example, I deployed the jms-to-rest project out of box, then:
http://localhost:8080/order-flow/queues/jms.queue.orders GET
response:
HTTP 200 No Error
Server: Apache-Coyote/1.1
Msg-Pull-Consumers: http://localhost:8080/order-flow/queues/jms.queue.orders/pull-consumers
Msg-Create-With-Id: http://localhost:8080/order-flow/queues/jms.queue.orders/create/{id}
Content-Type: application/xml
Date: Sat, 21 Apr 2012 00:34:03 GMT
Content-Length: 473
Msg-Create: http://localhost:8080/order-flow/queues/jms.queue.orders/create
then:
http://localhost:8080/order-flow/queues/jms.queue.orders/create POST
AASLDKGFHGI
response:
HTTP 201 Created
Msg-Create-Next: http://localhost:8080/order-flow/queues/jms.queue.orders/create
Msg-Create-Next-Type: */*
Server: Apache-Coyote/1.1
Date: Sat, 21 Apr 2012 00:37:33 GMT
Content-Length: 0
According to the document, shouldn't this request return a url with id? like http://localhost:8080/order-flow/queues/jms.queue.orders/create/001?
And when I do a pull-consumers POST, no message is returned from this queue. It's as if this message failed to be created.
I'm using jboss AS 7.1.1.Final.