Previously you were using this url:

  http://10.141.65.248:8080/activemq-rest/queues

Now you're using this url:

  http://localhost:8161/queues/myQ

I don't think switching to "localhost" is a problem assuming you're running
curl on the same machine as the broker.  You look to be using the proper
port now (i.e. 8161) which is progress.  However, you are no longer
specifying the context.  You were previously using "activemq-rest" which
was almost certainly wrong (as Archibald pointed out earlier).  I think you
should probably be using this url:

  http://localhost:8161/artemis-rest/queues/myQ

Try that and let me know how it goes.  You're slowly eliminating all the
wrong ways to construct the url!


Justin

On Thu, Feb 22, 2018 at 12:56 PM, tcomprak <tcomp...@gmail.com> wrote:

> Thanks. I configured a queue in the broker.xml file and re started artemis.
> Added the queue element inside the core element like this
>
> <core>
>
> <queues>
>    <queue name="myQ">
>       <address>myQ</address>
>       <durable>false</durable>
>     </queue>
> </queues>
>
> </core>
>
> and I get this
>
> [vncuser@qa-centos7x64-102 broker1]$ curl --head
> http://localhost:8161/queues/myQ
> HTTP/1.1 404 Not Found
> Date: Thu, 22 Feb 2018 18:54:20 GMT
> Cache-Control: must-revalidate,no-cache,no-store
> Content-Type: text/html;charset=iso-8859-1
> Content-Length: 325
> Server: Jetty(9.4.z-SNAPSHOT)
>
>
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>

Reply via email to