activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Smith (JIRA)" <>
Subject [jira] [Created] (AMQ-5478) REST endpoint creates topic instead of queue
Date Tue, 09 Dec 2014 04:49:13 GMT
Paul Smith created AMQ-5478:

             Summary: REST endpoint creates topic instead of queue
                 Key: AMQ-5478
             Project: ActiveMQ
          Issue Type: Bug
          Components: webconsole
    Affects Versions: 5.10.0
            Reporter: Paul Smith
            Priority: Minor

This is _possibly_ simply a Documentation bug, but I was testing the REST endpoints via the
documentation here:

When I first tried to post a simple message to a queue (and this queue didn't exist yet) I
used this script:

$ curl -d "body=message" -XPOST http://admin:admin@localhost:8161/api/message/queue/orders/input

The above is mostly based on the documentation.  I was surprised to find no queue created
by looking at the web console, but i _*did*_ see a Topic created called 'queue.orders.input'
and it contained 1 message (odd because there's no consumers defined).

After deleting the topic I then tried the 'other format' of the URL:

 curl -d "body=message" -XPOST http://admin:admin@localhost:8161/api/message/orders.input?type=queue

This does create a Queue of name 'orders.input' as one would expect.

I'm not exactly clear then from the documentation where in the URL one is defining it as a
queue using the former syntax.  The URL in the documentation sort of _implies_ that the 'queue'
prefix of the URL is creating a queue named 'orders.input' but it doesn't turn out that way.

So either this is a bug, or the documentation needs tweaking.

This message was sent by Atlassian JIRA

View raw message