Friday, 27 September 2013

ActiveMQ converting `/` to `.` in queue names when using curl

ActiveMQ converting `/` to `.` in queue names when using curl

My ActiveMQ queue is named queue/andburn. Using
curl -u admin:admin -d 'body="Aardvark"'
"http://localhost:8161/api/message/queue/andburn?type=queue"
creates a new queue queue.andburn. When I escape / like \/ I get
queue\.andburn. When I omit type=queue I don't see my message added to my
existing queue. Same when I use / to represent slashes.
Note: all escaping was done after queue in the URI, e.g.
"http://localhost:8161/api/message/queue\/andburn?type=queue"
The ActiveMQ REST page was not helpful in addressing this.

No comments:

Post a Comment